---
# System prepended metadata

title: Untitled

---


Live.me socket flows
---
```sequence
User 1->Socket\nServer: Connect to namespace default
User 1->API: Get channel list
API->User 1: Response channel list
User 1->Socket\nServer: Join channel rooms

User 2->Socket\nServer: Connect to namespace default
User 2->API: Get channel list
API->User 2: Response channel list
User 2->Socket\nServer: Join channel rooms
User 2->Socket\nServer: Send message
Socket\nServer->User 1: Broadcast to room new message

Streamer->Stream\nServer: Start stream
Stream\nServer->Socket\nServer: Call API notice stream go live
Socket\nServer->User 1: Broadcast to room stream online
Socket\nServer->User 2: Broadcast to room stream online

```

Event keys:
- JOIN_ROOM: 
- JOIN_ROOM_SUCCEED_WEB:
- JOIN_ROOM_SUCCEED_APP: 
- JOIN_CHANNEL
- SEND_MESSAGE
- RECEIVE_MESSAGE
- STREAM_ONLINE : Stream change to online mode
- STREAM_OFFLINE : Stream change to offline mode

DEFAULT_SOCKETIO_EVENTS:
- error
- connect
- connection
- disconnect
- disconnecting
- newListener
- removeListener
