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

Function close

src/node/setup-server-common.ts:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 restoreHandlers: network.restoreHandlers.bind(network),
36 listHandlers: network.listHandlers.bind(network),
37 close() {
38 /**
39 * @note Ignore closing after closed for backwards compatibility.
40 */
41 if (network.readyState === NetworkReadyState.DISABLED) {
42 return
43 }
44
45 network.disable()
46 },
47 }
48}
49

Callers

nothing calls this directly

Calls 1

disableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…