REQEUST
{
"id": 1,
"data": "请求数据",
"meta": "客户端语言"
}
RESPONSE
{
"status": 200,
"results": [
{
"id": 1234567890,
"type": "OK",
"kv": {
"id": "uuid",
"idx": "1",
"data": "响应数据",
"meta": "服务器端语言"
}
},
]
}
REQEUST
{
"os_name": "Windows",
"os_version": "10.0.19042",
"os_release": "10",
"os_architecture": "AMD64"
}
RESPONSE
{
"language": "en_US",
"encoding": "UTF-8",
"time_zone": "UTC"
}
%%{
init: {
'theme': 'forest'
}
}%%
sequenceDiagram
Hello Client->>+Hello Server:connect
Hello Server->>Hello Server:session[+client]
Hello Server->>-Hello Client:connected
Hello Client->>+Hello Server:EchoRequest
Hello Server->>-Hello Client:EchoResponse
loop Every 10 seconds
participant Hello Server
participant Hello Client
Hello Server->>+Hello Client:ping
alt pong
Hello Client->>-Hello Server:pong
else timeout
Hello Server->>Hello Server:session[-client] & close
end
end
loop Every 5 seconds
Hello Server->>+Hello Client:KissRequest
Hello Client->>-Hello Server:KissResponse
end
Hello Client->>+Hello Server:disconnect
Hello Server->>-Hello Server:session[-client] & close
- protocol send/receive
- header
- ping/pong
- handshake
- tls
- hello-websocket-java
- hello-websocket-go
- hello-websocket-rust
- hello-websocket-python
- hello-websocket-nodejs