-
Notifications
You must be signed in to change notification settings - Fork 14
Home
Kazuyuki Honda edited this page Mar 9, 2019
·
1 revision
- Do nothing
- Get room ID from connections table by connection ID
- Broadcast
{"type":"close"}
message to members who is joining the room - Remove
Client
information fromRoom
table
- Broadcast received message to members who is joining the room
- Remove
Client
information fromRoom
table iftype=close
- Create
Room
if not exists - Add
Client
info to the room - Return
{"type":"accept"}
if the room is not full- Add
Client
info to Rooms table - Add
Connection
info which represents relation between connection ID and Room ID
- Add
- Return
{"type":"reject"}
if the room is full (Currently max capacity is2
)
- Echo received message to connected client