Represents a socket-like interface to a TCP/SSL connection on either the client or the server side.
Instances of this class are not thread-safe.
no subtypes hierarchy
Return the local address for this socket
Return the remote address for this socket
Given this ID, a different event loop can send a buffer to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying connection. This allows you to write data to other connections which are owned by different event loops.
|Attributes inherited from: |
Close the NetSocket
Returns a promise that will be resolved when the NetSocket is closed
Tell the kernel to stream a file as specified by
Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.
|Methods inherited from: |