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

Method constructor

test/utils/httpserver.ts:23–26  ·  view source on GitHub ↗

* Expects a server and a disposal that cleans up the server (and anything * else that may need cleanup). * * Otherwise a new server is created.

(server?: { server: http.Server; dispose: Disposable["dispose"] })

Source from the content-addressed store, hash-verified

21 * Otherwise a new server is created.
22 */
23 public constructor(server?: { server: http.Server; dispose: Disposable["dispose"] }) {
24 this.hs = server?.server || http.createServer()
25 this.dispose = server?.dispose || disposer(this.hs)
26 }
27
28 /**
29 * listen starts the server on a random localhost port.

Callers

nothing calls this directly

Calls 1

disposerFunction · 0.90

Tested by

no test coverage detected