"net" server socket's information

Posted on
  • The socket object returned from createServer() shows (using JSON.stringify(sock)):

    {"type":0,"sckt":15,"conn":true}

    Are the above the only key/value pairs available?

    sock.remoteAddress and sock.remotePort are both undefined.

    Can these be discovered somehow?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

"net" server socket's information

Posted by Avatar for user106712 @user106712

Actions