Ende.QuicEndpoint

class ยท experimental

class Ende.QuicEndpoint

UNSTABLE: New API, yet to be vetted.

Constructors

constructor

new QuicEndpoint(options?: QuicEndpointOptions)

experimental

Create a QUIC endpoint which may be used for client or server connections.

Requires allow-net permission.

Properties

addr

readonly addr: NetAddr

Return the address of the QuicListener.

Methods

listen

listen(options: QuicListenOptions): QuicListener

experimental

UNSTABLE: New API, yet to be vetted. Listen announces on the local transport address over QUIC.

close

close(info?: QuicCloseInfo): void

Closes the endpoint. All associated connections will be closed and incoming connections will be rejected.