Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

hox/elixir-chat-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" } }

About

Gateway for elixir-chat, a website I made to learn elixir.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published