Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ Hono } from
'hono'
2
import
{ WebSocket, WebSocketServer } from
'ws'
3
import
type
{ AddressInfo } from
'node:net'
4
import
{ createAdaptorServer, upgradeWebSocket } from
'../src'
Callers
nothing calls this directly
Calls
6
startServer
Function · 0.85
send
Method · 0.80
handleUpgrade
Method · 0.80
emit
Method · 0.80
close
Method · 0.65
on
Method · 0.65
Tested by
no test coverage detected