Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mswjs/msw
/ resetState
Method
resetState
test/support/WebSocketServer.ts:51–54 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
49
}
50
51
public resetState(): void {
52
this.closeAllClients()
53
this.removeAllListeners()
54
}
55
56
public closeAllClients(): void {
57
this.clients.forEach((client) => {
Callers
5
ws.intercept.client.test.ts
File · 0.80
ws.server.connect.test.ts
File · 0.80
ws.intercept.server.test.ts
File · 0.80
ws.event-patching.test.ts
File · 0.80
ws.stop-propagation.test.ts
File · 0.80
Calls
2
closeAllClients
Method · 0.95
removeAllListeners
Method · 0.80
Tested by
no test coverage detected