Structs§
- Create
Response - Server
WebSocket - To avoid locks, we keep as much as we can inside of
Cells. - WsCancel
Resource - deno_
websocket - An extension for use with the Deno JS runtime. To use it, provide it as an argument when instantiating your runtime:
Enums§
Functions§
- op_
ws_ check_ permission_ and_ cancel_ handle - op_
ws_ close - op_
ws_ create - op_
ws_ get_ buffer - op_
ws_ get_ buffer_ as_ string - op_
ws_ get_ buffered_ amount - op_
ws_ get_ error - op_
ws_ next_ event - op_
ws_ send_ binary - op_
ws_ send_ binary_ ab - op_
ws_ send_ binary_ async - op_
ws_ send_ ping - op_
ws_ send_ text - op_
ws_ send_ text_ async - ws_
create_ server_ stream - ws_
create_ server_ stream_ with_ guard - Like
ws_create_server_streambut lets the embedder attach an opaque lifetime guard that lives as long as the underlyingServerWebSocketresource. The embedder can also recover anRc<ServerWebSocket>for the new resource through the returnedResourceIdin order to drive a server-initiated shutdown later viaServerWebSocket::server_shutdown.