Socket.io-rooms

yacoubb/socket.io-rooms
Boilerplate code for quickly creating a multi-room socket.io server. Includes functionality for registering usernames, creating and listing rooms, password protecting rooms, messaging and kicking.
JavaScript
2
0
An npm package that equips an existing socket.io server with multi-room functionality. Users are first prompted to register a username before they can join any rooms. Players can then view a list of existing rooms, create, password protect, join and leave rooms using a series of commands. Inside a room players can message. The owner of the room (person that created the room) can kick people. Individual rooms can have their own functionality, e.g. each room could be hosting a game of poker. Click the demo link to view the npm package.