MCPcopy Create free account
hub / github.com/CodinGame/monaco-vscode-api / constructor

Method constructor

demo/src/debugServer.ts:84–87  ·  view source on GitHub ↗
(private onMessage: (message: string) => void)

Source from the content-addressed store, hash-verified

82 private rawData = Buffer.allocUnsafe(0)
83 private contentLength = -1
84 constructor(private onMessage: (message: string) => void) {
85 this.socket = new net.Socket()
86 this.socket.on('data', this.onData)
87 }
88
89 private onData = (data: Buffer) => {
90 this.rawData = Buffer.concat([this.rawData, data])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected