WebSocketInput
What the transport feeds to a connection.
What the transport feeds to a connection.
Import#
ts
import type { WebSocketInput } from "@shadow-js/dusk/server";
Signature#
ts
interface WebSocketInput {
/** Bytes read from the peer. */
push(bytes: Uint8Array): void;
/** The transport closed (without a close frame, or after one). Safe to call more than once. */
closed(): void;
}
Members#
| Name | Type | Description |
|---|---|---|
push |
push(bytes: Uint8Array): void |
Bytes read from the peer. |
closed |
closed(): void |
The transport closed (without a close frame, or after one). Safe to call more than once. |