Module client

Source
Expand description

Client handshake machine.

Structs§

ClientHandshake
Client handshake role.

Functions§

generate_key
Generate a random key for the Sec-WebSocket-Key header.
generate_request
Verifies and generates a client WebSocket request from the original request and extracts a WebSocket key from it.

Type Aliases§

Request
Client request type.
Response
Client response type.