Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

node-socketio-example

Example of using node.js and socketio for event notifications. It's an example of unidirectional communication, so it was tried to be done using server-sent events, but socket.io has proven to be a superior and better supported solution.

This example aims to deliver the information about new events to the characters in the game. It has an eternal handler loop which can notify any of connected users when new data is available.

Specifically, it's meant to be used for Cantr - a 100% free-to-play, browser-based role-playing game and society simulator.

how to run

node server.js [PORT_TO_LISTEN]

[PORT_TO_LISTEN] - optional, default is 12345

About

Example of using node.js and socketio for real-time event notification for Cantr - a free-to-play society simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published