Index
Modules:
ws
.
API symbols
Binary:
Opcode.Binary
Close:
Opcode.Close
close:
ws: close(ws: WebSocket)
Closed:
ReadyState.Closed
Closing:
ReadyState.Closing
Connecting:
ReadyState.Connecting
Cont:
Opcode.Cont
decodeBase16:
ws: decodeBase16(str: string): string
encodeBase16:
ws: encodeBase16(str: string): string
handshake:
ws: handshake(ws: WebSocket; headers: HttpHeaders): owned(Future[void])
hangup:
ws: hangup(ws: WebSocket)
newWebSocket:
ws: newWebSocket(req: Request; protocol: string = ""): Future[WebSocket]
ws: newWebSocket(url: string; protocols: seq[string] = @[]): Future[WebSocket]
ws: newWebSocket(url: string; protocol: string): Future[WebSocket]
Opcode:
ws: Opcode
Open:
ReadyState.Open
Ping:
Opcode.Ping
ping:
ws: ping(ws: WebSocket; data = ""): owned(Future[void])
Pong:
Opcode.Pong
ReadyState:
ws: ReadyState
receiveBinaryPacket:
ws: receiveBinaryPacket(ws: WebSocket): Future[seq[byte]]
receivePacket:
ws: receivePacket(ws: WebSocket): Future[(Opcode, string)]
receiveStrPacket:
ws: receiveStrPacket(ws: WebSocket): Future[string]
send:
ws: send(ws: WebSocket; text: string; opcode = Opcode.Text): Future[void]
setupPings:
ws: setupPings(ws: WebSocket; seconds: float)
Text:
Opcode.Text
toSeq:
ws: toSeq(hv: HttpHeaderValues): seq[string]
WebSocket:
ws: WebSocket
WebSocketClosedError:
ws: WebSocketClosedError
WebSocketCreationError:
ws: WebSocketCreationError
WebSocketError:
ws: WebSocketError
WebSocketFailedUpgradeError:
ws: WebSocketFailedUpgradeError
WebSocketHandshakeError:
ws: WebSocketHandshakeError
WebSocketPacketTypeError:
ws: WebSocketPacketTypeError
WebSocketProtocolMismatchError:
ws: WebSocketProtocolMismatchError