socketmoor

0.0.1 • Public • Published

Socketmoor

A very basic framework for room-based WebSocket communication meant for games.

Assumptions:

  • Users and rooms have an unchangeable unique numeric id.

  • Users and rooms have a changeable unique string sid.

  • User sids are unique only in rooms.

  • A client can only be present in a single room and must leave it to enter another.

  • Rooms are created when a client wants to enter a rooms that doesn't exit.

  • Rooms are destroyed when all clients leave.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i socketmoor

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • paul-nechifor