Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/robtaussig/react-use-websocket
/ create-or-join.test.ts
File
create-or-join.test.ts
src/lib/create-or-join.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ MutableRefObject } from
'react'
;
2
import
{ createOrJoinSocket } from
'./create-or-join'
;
3
import
WS from
"jest-websocket-mock"
;
4
import
{ Options } from
'./types'
;
Callers
nothing calls this directly
Calls
4
hasSubscribers
Function · 0.90
getSubscribers
Function · 0.90
removeSubscriber
Function · 0.90
createOrJoinSocket
Function · 0.90
Tested by
no test coverage detected