chickadee » ws-client » ws-connect

(ws-connect STRING #!optional (list WS-EXTENSION ...)) -> WS-CONNECTIONprocedure

The state of a WebSocket connection is stored in a record of type ws-connection.

The procedure ws-connect establishes a WebSocket connection to a server. The argument STRING should be a valid WebSocket URI.

To use WebSockets over TLS, supply a URI with scheme wss.

The procedure ws-connect optionally accepts a list of extensions the client hopes to use. The only extension currently supported by this library is permessage-deflate; see the relevant section.