- 
                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 
Clientinformation fromRoomtable 
- Broadcast received message to members who is joining the room
 -  Remove 
Clientinformation fromRoomtable iftype=close 
-  Create 
Roomif not exists -  Add 
Clientinfo to the room -  Return 
{"type":"accept"}if the room is not full-  Add 
Clientinfo to Rooms table -  Add 
Connectioninfo 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