new TcpTransport(optsopt)
TCP transport class. Implements base transport interface.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Transport options Properties
|
- Source:
Methods
connect()
Connect to a TCP node. Connection arguments are the same as for net.connect.
- Source:
listen()
Listen for incoming TCP connections. Listen arguments are the same as for server.listen.
- Source: