This commit is contained in:
acgist
2023-02-19 12:41:29 +08:00
parent e73c55652b
commit a4696a9b9b
4 changed files with 72 additions and 20 deletions

View File

@@ -1,13 +0,0 @@
# 信令
## 信令格式
[信令格式](https://localhost:8888/protocol/list)
## 测试
```
let socket = new WebSocket("wss://localhost:8888/websocket.signal");
socket.send('{"header":{"signal":"client::register","v":"1.0.0","id":"1"},"body":{"username":"taoyao","password":"taoyao","clientId":"taoyao"}}');
socket.send('{"header":{"signal":"client::heartbeat","v":"1.0.0","id":"1"},"body":{}}');
```