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

Method socketConnected

packages/utils/socksProxy.ts:229–238  ·  view source on GitHub ↗
(host: string, port: number)

Source from the content-addressed store, hash-verified

227 }
228
229 socketConnected(host: string, port: number) {
230 this._writeBytes(Buffer.from([
231 0x05,
232 SocksReply.Succeeded,
233 0x00, // RSV
234 ...ipToSocksAddress(host), // ATYP, Address
235 port >> 8, port & 0xFF // Port
236 ]));
237 this._socket.on('data', data => this._client.onSocketData({ uid: this._uid, data }));
238 }
239
240 socketFailed(errorCode: string) {
241 const buffer = Buffer.from([

Callers

nothing calls this directly

Calls 5

_writeBytesMethod · 0.95
ipToSocksAddressFunction · 0.85
onMethod · 0.65
onSocketDataMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected