Class: UDPSocket
Extends
AsyncDisposable
Constructors
Constructor
new UDPSocket(
options):UDPSocket
Parameters
options
Returns
UDPSocket
Properties
closed
readonlyclosed:Promise<void>
opened
readonlyopened:Promise<UDPSocketOpenInfo>
Methods
close()
close():
void
Initiates close. Use closed to await full teardown.
Also async-disposable: at the end of an
await using s = new UDPSocket(...) scope the socket is closed and
closed is awaited.
Returns
void