MCPcopy Create free account
hub / github.com/honojs/node-server / close

Function close

src/websocket.ts:235–237  ·  view source on GitHub ↗
(code, reason)

Source from the content-addressed store, hash-verified

233 const ctx: WSContext<WebSocketLike> = {
234 binaryType: 'arraybuffer',
235 close(code, reason) {
236 ws.close(code, reason)
237 },
238 protocol: ws.protocol,
239 raw: ws,
240 get readyState() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…