Namespace: net
Table of contents
Classes
Functions
Functions
Open
▸ Open(protocol): NetConn | null
Open opens a new connection to the address with a timeout.
supported protocols: tcp, udp
Parameters
| Name | Type | 
|---|---|
| protocol | string | 
Returns
NetConn | null
Example
Defined in
net.ts:12OpenTLS
▸ OpenTLS(protocol): NetConn | null
Open opens a new connection to the address with a timeout.
supported protocols: tcp, udp
Parameters
| Name | Type | 
|---|---|
| protocol | string | 
Returns
NetConn | null
Example