Skip to content

rauchg/weplay-presence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weplay-presence

Small script that aggregates the count of connected clients from each weplay server and broadcasts it.

How to install

$ npm install

And run it with the following ENV vars:

  • WEPLAY_REDIS - redis uri (localhost:6379)
  • WEPLAY_INTERVAL - how often we update clients on the total number of connected peers. We use an interval to avoid client slowdowns when too many clients connect at once (5000)
$ node index

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published