connection event (http.Server)

Event: 'connection'

function (socket) { }

When a new TCP stream is established. socket is an object of type net.Socket. Usually users will not want to access this event. In particular, the socket will not emit 'readable' events because of how the protocol parser attaches to the socket. The socket can also be accessed at request.connection.

doc_Nodejs
2016-04-30 04:38:18
Comments
Leave a Comment

Please login to continue.