1XX - Server status

100 - Server version and time

Returns the server version (established in the server configuration file) and the current server time (as a timestamp)

In

{"type":100}

Out

{"type":100,"data":{"version":"0.1.0","t":1607339705}}

101 - Connected clients

Returns the number of connected clients. If data.channel is provided, the number of clients of that channel will be returned.

In

{"type":101}

Out

{"type":101,"data":{"clients":0}}

102 - Channel list

Returns the list of existing channels and the number of connected clients for each one.

In

{"type":102}

Out

{"type":102,"data":{"channels":[{"name":"0","clients":1},{"name":"Test","clients":1}]}}

Last updated