Sascha L. Teichmann
|
f80d9e452c
|
Don't use fmt.Sprintf when sending size of a redis bulk string.
|
2015-05-27 16:48:51 +02:00 |
|
Sascha L. Teichmann
|
a165bcd53a
|
Removed some dead code.
|
2015-05-27 00:02:13 +02:00 |
|
Sascha L. Teichmann
|
29a5abeec4
|
Simplified Redis code a bit when writing booleans to client.
|
2015-05-26 19:25:26 +02:00 |
|
Sascha L. Teichmann
|
af469a3173
|
Merged.
|
2015-05-26 18:14:48 +02:00 |
|
Sascha L. Teichmann
|
75b2496fa6
|
Fixes issue #7. mtredisalize implements Redis PING command.
|
2015-05-26 18:12:55 +02:00 |
|
Sascha L. Teichmann
|
4d467f3158
|
Reverted accidentally default activation of websockets in d514399.
|
2015-05-25 13:04:28 +02:00 |
|
Sascha L. Teichmann
|
787fc959d0
|
Removed some dead code.
|
2015-05-01 14:04:23 +02:00 |
|
Sascha L. Teichmann
|
3b8faba353
|
Fixed small nit found by golint.
|
2015-03-14 19:03:25 +01:00 |
|
Sascha L. Teichmann
|
b029c473a8
|
Made maxBulkStringSize a command line option 'max-bulk-string-size'. It defaults to 32MB.
|
2015-03-14 19:01:00 +01:00 |
|
Sascha L. Teichmann
|
7a6d0a0d31
|
Fixed none vanishing manual update control when switching to auto update.
|
2015-03-13 17:06:50 +01:00 |
|
Sascha L. Teichmann
|
f71db790e7
|
Replace string.contains() with string.indexOf() which is better supported.
|
2015-03-13 16:25:19 +01:00 |
|
Sascha L. Teichmann
|
b54b2b6b91
|
Fixed vanishing players whem refreshing after switching back from auto-update.
|
2015-03-13 16:06:06 +01:00 |
|
Sascha L. Teichmann
|
4b4c620c35
|
Removed pointless logging.
|
2015-03-13 15:46:33 +01:00 |
|
Sascha L. Teichmann
|
c3b634669a
|
Simplified auto update code. Removed pointless tile updating when there are only player updates. Removed redundant JSON parsing.
|
2015-03-13 15:43:59 +01:00 |
|
Sascha L. Teichmann
|
71636a5b4c
|
Fix state switching auto-update/manual refresh.
|
2015-03-13 15:03:10 +01:00 |
|
Sascha L. Teichmann
|
dda0716053
|
To keep websockets alive send every eight seconds a ping to the server.
|
2015-03-13 12:29:55 +01:00 |
|
Sascha L. Teichmann
|
d2b6ff4fbb
|
Orange is the new red.
|
2015-03-10 14:29:55 +01:00 |
|
Raimund Renkert
|
fa3c39297f
|
Use leaflet awesome marker as icon for players.
|
2015-03-10 14:10:03 +01:00 |
|
Raimund Renkert
|
5567c7e882
|
Added leaflet awesome markers.
|
2015-03-10 14:09:19 +01:00 |
|
Sascha L. Teichmann
|
65caefaf85
|
Fixed track_players mod.
|
2015-03-10 12:57:00 +01:00 |
|
Sascha L. Teichmann
|
524fe451b1
|
Fixes small errors in handling players detection in mtwebmapper.
|
2015-03-10 12:49:10 +01:00 |
|
Sascha L. Teichmann
|
d242fb5cf1
|
Fixed stupid logic mistake.
|
2015-03-10 12:17:28 +01:00 |
|
Sascha L. Teichmann
|
09e24cda65
|
Optimize the case that nothing has changes concerning the players. This should not lead to broadcasting of notifications.
|
2015-03-10 12:08:14 +01:00 |
|
Raimund Renkert
|
6e9585ed67
|
Added marker icon for players.
|
2015-03-09 17:55:53 +01:00 |
|
Raimund Renkert
|
3c63fbf185
|
Added players layer and update data in manual and auto mode.
|
2015-03-09 17:55:19 +01:00 |
|
Raimund Renkert
|
b3ba074e28
|
Added leaflet ajax plugin.
|
2015-03-09 17:52:17 +01:00 |
|
Raimund Renkert
|
9523353167
|
Swapped X/Y coordinates for player.
|
2015-03-09 17:50:58 +01:00 |
|
Sascha L. Teichmann
|
28fc4d0734
|
Dont lock the player list all the time when serving the GeoJSON over /players.
|
2015-03-09 16:05:54 +01:00 |
|
Sascha L. Teichmann
|
c918b538db
|
Broadcast player posistion to websocket clients this could be high traffic.
|
2015-03-09 15:37:57 +01:00 |
|
Raimund Renkert
|
99d4f700be
|
Surround player name attribute with double quotes.
|
2015-03-09 15:01:47 +01:00 |
|
Sascha L. Teichmann
|
3f5bf6c240
|
Start with empty player list.
|
2015-03-09 14:32:14 +01:00 |
|
Sascha L. Teichmann
|
5d7b910a4d
|
Read players from fifo.
|
2015-03-09 14:31:20 +01:00 |
|
Sascha L. Teichmann
|
ff08f2af94
|
Serve GeoJSON encoded players via /players.
|
2015-03-09 14:08:52 +01:00 |
|
Sascha L. Teichmann
|
cbfb594c83
|
Added JSON marshaller for players.
|
2015-03-09 14:01:30 +01:00 |
|
Sascha L. Teichmann
|
da51389935
|
Wire websocket forwarder with players updater.
|
2015-03-09 13:16:31 +01:00 |
|
Sascha L. Teichmann
|
ece8924355
|
Add stub for players controller.
|
2015-03-09 13:09:13 +01:00 |
|
Sascha L. Teichmann
|
d6b4bb6352
|
Replaced 'if (cond) { ...; return; } if (!cond) { ...; return; }' with 'if (cond) { ... } else { ... }'.
|
2015-03-08 13:39:02 +01:00 |
|
Sascha L. Teichmann
|
446a3ddc10
|
Small JS nits.
|
2015-03-04 12:10:07 +01:00 |
|
Raimund Renkert
|
c32e2646af
|
Check the browsers websocket support and added flag to turn websocket on/off.
|
2015-03-04 11:05:36 +01:00 |
|
Raimund Renkert
|
7413221341
|
Replaced checkbox with toggle button to start automatic updates.
|
2015-03-04 10:36:59 +01:00 |
|
Sascha L. Teichmann
|
f708a7c44b
|
Added forgotten semikola in JS.
|
2015-03-04 09:33:07 +01:00 |
|
Sascha L. Teichmann
|
b71f8bd208
|
Removed the radix 10 from parseInt calls as it is the default.
|
2015-03-04 08:55:20 +01:00 |
|
Sascha L. Teichmann
|
49c95f15ca
|
Added missing auto update javascript file. Implemented smarter invalidatioon code based on server notification.
|
2015-03-04 00:39:35 +01:00 |
|
Sascha L. Teichmann
|
0b7c8b6afe
|
Applied rrenkert's patch to have an autoupdating client.
|
2015-03-03 15:22:00 +01:00 |
|
Sascha L. Teichmann
|
7249a60043
|
Use "ignore incoming messages" code from the gorilla websocket documentation.
|
2015-03-03 01:33:12 +01:00 |
|
Sascha L. Teichmann
|
f943919ee6
|
Implemented the sending of the base tile changes to the connected websocket clients.
|
2015-03-03 01:13:37 +01:00 |
|
Sascha L. Teichmann
|
83cf9dbaad
|
Added command line flags for websocket support. Added dummy websocket controller.
|
2015-03-02 14:16:36 +01:00 |
|
Sascha L. Teichmann
|
d871808b92
|
Little golint nit.
|
2015-03-02 13:17:52 +01:00 |
|
Sascha L. Teichmann
|
33a53c11da
|
Factored out some common stuff to separate file.
|
2015-03-02 13:14:29 +01:00 |
|
Sascha L. Teichmann
|
3e0e909a69
|
Added 'websocket' branch. Added mechanism to forward the coords of the updated base tiles.
|
2015-03-02 13:10:30 +01:00 |
|