net
Properties
The net instance has no set properties!
Methods
The net instance has no set methods!
Functions
urlEncode
net . urlEncode () -> ()
url: string
binary: boolean?
Encodes the given string using URL encoding.
request
net . request () -> ()
config: string | FetchParams
Sends an HTTP request using the given url and / or parameters, and returns a dictionary that describes the response received.
Only throws an error if a miscellaneous network or I/O error occurs, never for unsuccessful status codes.
tcpSocket
net . tcpSocket () -> ()
url: string
Connects to a TCP web socket at the given URL.
Throws an error if the server at the given URL does not support web sockets, or if a miscellaneous network or I/O error occurs.
udpSocket
net . udpSocket () -> ()
_url: string
Connects to a UDP web socket at the given URL.
Throws an error if the server at the given URL does not support web sockets, or if a miscellaneous network or I/O error occurs.