MCPcopy Create free account
hub / github.com/Marus/cortex-debug / constructor

Method constructor

src/frontend/swo/sources/socket.ts:291–299  ·  view source on GitHub ↗
(tcpPort: string)

Source from the content-addressed store, hash-verified

289 }
290
291 constructor(tcpPort: string) {
292 super(tcpPort);
293 this.on('connected', () => {
294 // When we connect we need to start a sequence of commands to configure the SWO stream.
295 // It starts with create pipe and is continued in the data callback
296 this.state = PeState.CREATE_PIPE;
297 this.createPipe();
298 });
299 }
300
301 protected processData(buffer: Buffer): void {
302 let offset = 0;

Callers

nothing calls this directly

Calls 1

createPipeMethod · 0.95

Tested by

no test coverage detected