MCPcopy Index your code
hub / github.com/nodejs/node / isNetSocket

Function isNetSocket

test/parallel/test-diagnostics-channel-http.js:12–12  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

10const isIncomingMessage = (object) => object instanceof http.IncomingMessage;
11const isOutgoingMessage = (object) => object instanceof http.OutgoingMessage;
12const isNetSocket = (socket) => socket instanceof net.Socket;
13const isError = (error) => error instanceof Error;
14
15dc.subscribe('http.client.request.start', common.mustCall(({ request }) => {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…