Skip to main content

Class: UDPSocket

Extends​

  • AsyncDisposable

Constructors​

Constructor​

new UDPSocket(options): UDPSocket

Parameters​

options​

UDPSocketOptions

Returns​

UDPSocket

Properties​

closed​

readonly closed: Promise<void>


opened​

readonly opened: 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