| Op Code | Tx/Rx (Client) | Short Description | Example | Value |
|---|---|---|---|---|
| 0 | Rx | Initial connect payload | { op: 0, d: { heartbeat_interval: 30000 (interval time in millis) } } |
|
| 1 | Tx | Send Heartbeat | { op: 1 } |
{ op: 1 } |
| 2 | Rx | Heartbeat ACK | { op: 2 } |
|
| 3 | Tx | Send Message | { op: 3, d: { message: "Hello!" } } |
Refer to Op Code 4 |
| 4 | Rx | Recieve Message | { op: 4, d: { message: "Hello!", sender: "John Doe" } } |
|
| 5 | Rx | Update Client List | { op: 5, d: { client_list: [ { pid: "#PID<0.0.0>", nickname: "John Doe" } ] } } |
|
| 6 | Tx | Set Nickname | { op: 6, d: { nickname: "John Doe" } } |
Refer to OP Code 7 |
| 7 | Rx | Update Nickname | { op: 7, d: { pid: "#PID<0.0.0>", nickname: "John Doe" } } |
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
hox/elixir-chat-gateway
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Gateway for elixir-chat, a website I made to learn elixir.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published