3868910dde
* actioncable needs puma not webrick * add framework * remove the old way * send events from server to client * get all events working * clean up receivable * map is polymorphic on message * add the moved event * make todo comments clear * verify before streaming from map channel * rubocop fixes * wasn't set up correctly for nodejs realtime |
||
---|---|---|
.. | ||
global.js | ||
junto.js | ||
map.js | ||
README.md | ||
realtime-server.js | ||
reducer.js | ||
rooms.js | ||
signal.js |
Node.js realtime server
To run the server, you need to install the dependencies and run the server. Please ensure you have followed the OS-specific instructions in doc/ to install NodeJS. Once you have node, then you can proceed to install the node packages for the realtime server:
npm install #creates node_modules directory
node realtime/realtime-server.js
That's it!
To run the server as a daemon that will be re-run if it crashes, you can use the forever node package.
sudo npm install -g forever
forever start realtime/realtime-server.js