MCPcopy Create free account
hub / github.com/cloudflare/templates / acceptWebSocket

Method acceptWebSocket

next-starter-template/env.d.ts:547–547  ·  view source on GitHub ↗
(ws: WebSocket, tags?: string[])

Source from the content-addressed store, hash-verified

545 facets: DurableObjectFacets;
546 blockConcurrencyWhile<T>(callback: () => Promise<T>): Promise<T>;
547 acceptWebSocket(ws: WebSocket, tags?: string[]): void;
548 getWebSockets(tag?: string): WebSocket[];
549 setWebSocketAutoResponse(maybeReqResp?: WebSocketRequestResponsePair): void;
550 getWebSocketAutoResponse(): WebSocketRequestResponsePair | null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected