def send

bend-kit-websocket@0.4.0.0 · websocket.bend:969

import bend-kit-websocket@0.4.0.0/websocket.bend as Websocket
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

969# Sends one frame: fin false starts or continues a fragmented message (later frames use op 0).
970def send(c: Conn, +fin: Bool, +op: U32, payload: Bytes.Bytes) -> IO(Conn & Result<&1, &1, U32 & String, Unit>):
971  Conn{sock, +tls, +server, input, partial, +max, +closing} = c
972  do IO<Conn & Result<&1, &1, U32 & String, Unit>>:
973    r : Socket & Result<&1, &1, U32 & String, Unit> <- raw(server, sock, tls, fin, op, payload)
974    return back(r, tls, server, input, partial, max, closing)

Uses (14)

Used by (0)

No other definition uses this definition.