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

WebSocket Basic

Code Hz edited this page May 11, 2018 · 1 revision

The address

We use the token to ensure that the server is not used maliciously. That means the address will be:

ws://{{-websocket}}/{{-token}}

If you need more security, please consider to use a reverse proxy like nginx (so that you can use wss protocol)

The protocol

The protocol is simple. just send command and receive the result.

Warning

The command result will be broadcast to all clients.

Clone this wiki locally