MCPcopy
hub / github.com/codeaashu/claude-code / newConnState

Function newConnState

src/upstreamproxy/relay.ts:140–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140function newConnState(): ConnState {
141 return {
142 connectBuf: Buffer.alloc(0),
143 pending: [],
144 wsOpen: false,
145 established: false,
146 closed: false,
147 }
148}
149
150/**
151 * Start the relay. Returns the ephemeral port it bound and a stop function.

Callers 2

openFunction · 0.85
startNodeRelayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected