end event (net.Socket)

Event: 'end'

Emitted when the other end of the socket sends a FIN packet.

By default (allowHalfOpen == false) the socket will destroy its file descriptor once it has written out its pending write queue. However, by setting allowHalfOpen == true the socket will not automatically end() its side allowing the user to write arbitrary amounts of data, with the caveat that the user is required to end() their side now.

doc_Nodejs
2016-04-30 04:39:08
Comments
Leave a Comment

Please login to continue.