bend-kit-websocket
Releases (6)
Definitions (148)
websocket.bend
- def feed.size
- def feed.join
- def feed.data
- def feed.kind
- def feedOne parsed frame into the message being built.
- def close.payloadcode (big-endian) then a UTF-8 reason.
- def close.code.okCodes a peer may send: §7.4.1, the IANA registry through 1014, and 3000-4999.
- def close.utf8
- def close.reason
- def close.code
- def close.parseThe code and reason of a close frame.
- type Connserver: this end is the server (peer frames arrive masked, ours go clear), for a socket an HTTP server upgraded.
- type IncomingWhat recv returns.
- def io.send.if
- def io.send
- def io.recv
- def io.close
- type Head
- def head.loop
- def head.readReads an HTTP head: the text before its blank line, and the bytes after it.
- def hs.fail
- def hs.checked
- def hs.head
- def hs.sent
- def hs.request
- def hs.accepted
- def hs.keyed
- def handshakeThe opening handshake on a connected socket (TLS already up when tls).
- def connect.tls
- def connect.tcp
- def connectws:// (tls false) or wss:// to a numeric address (resolve names with dns).
- def raw.encoded
- def raw.key
- def raw.keyed
- def rawA client masks every frame with a fresh key from the OS secure random source (§5.3).
- def back
- def sendSends one frame: fin false starts or continues a fragmented message (later frames use op 0).
- def closeSends a close frame; recv then runs until the peer's close comes back as Closed.
- def shutdownCloses the socket (and its TLS session).
- type Step
- def recv.out
- def recv.failed
- def recv.failA peer broke the protocol: send close with its code (§7.1.7), then report it.
- def recv.echoed
- def recv.closed
- def recv.stuck
- def recv.loop
- def recvThe next message, pong, or close.