gosocketio/vendor/github.com/googollee/go-socket.io/upgrade workflow.md

15 lines
428 B
Markdown
Raw Normal View History

2023-11-30 17:38:20 +08:00
```mermaid
sequenceDiagram
client->>server: dial
server->>client: reply open
client->>server: dial upgrade
client->>server: upgrade ping probe
server->>client: upgrade pong probe
client->>client: pause old conn
client->>client: switch old conn to upgraded conn
client->>server: upgrade
server->>server: pause old conn(return noop if waiting)
server->>server: switch old conn to upgraded conn
server->>server: close old conn
```