MCPcopy
hub / github.com/webpack/webpack-dev-server / teardown

Function teardown

test/server/proxy-option.test.js:887–897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

885 };
886
887 const teardown = async () => {
888 for (const client of backendWss.clients) {
889 client.terminate();
890 }
891 backendWss.close();
892 backend.closeAllConnections();
893 await server.stop();
894 await new Promise((resolve) => {
895 backend.close(resolve);
896 });
897 };
898
899 // Open a WebSocket to `path` and report whether the dev-server completed the
900 // handshake (`opened`) and whether the upgrade was forwarded to the backend

Callers

nothing calls this directly

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…