MCPcopy Create free account
hub / github.com/honojs/node-server / websocket.test.ts

File websocket.test.ts

test/websocket.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Hono } from 'hono'
2import { WebSocket, WebSocketServer } from 'ws'
3import type { AddressInfo } from 'node:net'
4import { createAdaptorServer, upgradeWebSocket } from '../src'

Callers

nothing calls this directly

Calls 6

startServerFunction · 0.85
sendMethod · 0.80
handleUpgradeMethod · 0.80
emitMethod · 0.80
closeMethod · 0.65
onMethod · 0.65

Tested by

no test coverage detected