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

Method sendMessage

demo/src/debugServer.ts:125–130  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

123 }
124
125 public sendMessage(message: string) {
126 this.socket.write(
127 `Content-Length: ${Buffer.byteLength(message, 'utf8')}${TWO_CRLF}${message}`,
128 'utf8'
129 )
130 }
131}
132
133const TWO_CRLF = '\r\n\r\n'

Callers 1

debugServer.tsFile · 0.80

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected