mlx-bun library API
    Preparing search index...

    One open connection. The host hands the handler the same peer for every call about that connection.

    interface SocketPeer {
        close(code?: number, reason?: string): void;
        send(data: string): void;
    }
    Index
    • Closes the connection; the code and reason are the WebSocket close frame's (default 1000).

      Parameters

      • Optionalcode: number
      • Optionalreason: string

      Returns void