MCPcopy
hub / github.com/microsoft/playwright / onSocketData

Method onSocketData

packages/utils/socksProxy.ts:470–477  ·  view source on GitHub ↗
(payload: SocksSocketDataPayload)

Source from the content-addressed store, hash-verified

468 }
469
470 onSocketData(payload: SocksSocketDataPayload): void {
471 const direct = this._directSockets.get(payload.uid);
472 if (direct) {
473 direct.write(payload.data);
474 return;
475 }
476 this.emit(SocksProxy.Events.SocksData, payload);
477 }
478
479 onSocketClosed(payload: SocksSocketClosedPayload): void {
480 const direct = this._directSockets.get(payload.uid);

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
writeMethod · 0.65
emitMethod · 0.45

Tested by

no test coverage detected