Manages a UDP socket and multiplexes DTLS sessions.
Returns:
Object{ address, family, port }The local address the endpoint is bound to.
Returns:
DTLSEndpointStateShared state object with properties:
Attributes
Type:
DTLSEndpoint.StatsThe statistics collected for this endpoint. Read only. The stats object is live and updated by the C++ internals as data flows through the endpoint.
Attributes
When true, the endpoint rejects new incoming connections. Can be set
to implement backpressure.
endpoint.close(): Promise
Returns:
PromiseResolves when the endpoint is fully closed.
Gracefully closes the endpoint. All active sessions are closed with
close_notify alerts before the UDP socket is released.
endpoint.destroy(error?): void
Immediately destroys the endpoint without sending close_notify alerts.
Attributes
Resolves when the endpoint has fully closed.
endpoint[Symbol.asyncDispose](): void
Equivalent to calling endpoint.close().