MCPcopy Index your code
hub / github.com/TanStack/devtools / createThrowingWebSocketClass

Function createThrowingWebSocketClass

packages/event-bus/tests/client.test.ts:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function createThrowingWebSocketClass() {
73 return class ThrowingWebSocket {
74 static OPEN = 1
75 static CLOSED = 3
76 constructor() {
77 throw new Error('WS not available')
78 }
79 }
80}
81
82describe('ClientEventBus', () => {
83 beforeEach(() => {

Callers 1

client.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected