MCPcopy
hub / github.com/mswjs/msw / url

Method url

test/support/WebSocketServer.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 get url(): string {
34 invariant(
35 this._url,
36 'Failed to get "url" on WebSocketServer: server is not running. Did you forget to "await server.listen()"?',
37 )
38 return this._url
39 }
40
41 public async listen(port = 0): Promise<void> {
42 const address = await this.app.listen({

Callers 15

endpointFunction · 0.80
link.test.tsFile · 0.80
endpointFunction · 0.80
operation.test.tsFile · 0.80
sse.signal.test.tsFile · 0.80
waitForResponseFunction · 0.80

Calls 1

invariantFunction · 0.85

Tested by 5

endpointFunction · 0.64
endpointFunction · 0.64
waitForResponseFunction · 0.64
getStreamResponseFunction · 0.64
makeRequestFunction · 0.64