SequenceDiagrams

Examples

WebSocket Sequence Diagram

This WebSocket sequence diagram starts with the HTTP upgrade handshake and the 101 response. After the connection opens, it shows bidirectional messages followed by a clean close.

WebSocket ConnectionClientServerHTTP upgrade request101 Switching ProtocolsConnection openMessageMessageCloseClosed

Diagram source

Use this text as a starting point or open it in the editor to make changes.

title: WebSocket Connection
Client -> Server: HTTP upgrade request
Server --> Client: 101 Switching Protocols
note Client, Server: Connection open
Client ->> Server: Message
Server ->> Client: Message
Client -> Server: Close
Server --> Client: Closed