MCPcopy Index your code
hub / github.com/anomalyco/opencode / forceClose

Function forceClose

packages/opencode/src/server/server.ts:195–197  ·  view source on GitHub ↗
(state: ListenerState)

Source from the content-addressed store, hash-verified

193}
194
195function forceClose(state: ListenerState) {
196 return Effect.all([state.http.closeAll, state.websockets.closeAll], { concurrency: "unbounded", discard: true })
197}
198
199function serverLayer(opts: { port: number; hostname: string }) {
200 const server = createServer()

Callers 1

makeStopFunction · 0.85

Calls 1

allMethod · 0.45

Tested by

no test coverage detected