MCPcopy Index your code
hub / github.com/coder/code-server / stop

Method stop

src/node/socket.ts:23–28  ·  view source on GitHub ↗

* Stop the proxy server.

()

Source from the content-addressed store, hash-verified

21 * Stop the proxy server.
22 */
23 public stop(): void {
24 if (this._proxyServer) {
25 this._proxyServer.then((server) => server.close())
26 this._proxyServer = undefined
27 }
28 }
29
30 /**
31 * Create a socket proxy for TLS sockets. If it is not a TLS socket the

Callers 2

socket.test.tsFile · 0.80
disposeFunction · 0.80

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected