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

@@ -8,3 +8,15 @@
|taoyao-boot|基础|基础模块|
|taoyao-signal|信令|信令模块|
|taoyao-server|服务|启动模块|
## 信令格式
[信令格式](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":{}}');
```