Skip to main content

QuicConn

interface Deno.QuicConn
unstable

Properties Jump to heading

The endpoint for this connection.

readonly
Jump to headinghandshake: Promise<void>

Returns a promise that resolves when the TLS handshake is complete.

Return the remote address for the connection. Clients may change addresses at will, for example when switching to a cellular internet connection.

readonly
Jump to headingprotocol: string | undefined

The negotiated ALPN protocol, if provided. Only available after the handshake is complete.

readonly
Jump to headingserverName: string | undefined

The negotiated server name. Only available on the server after the handshake is complete.

Returns a promise that resolves when the connection is closed.

A stream of bidirectional streams opened by the peer.

A stream of unidirectional streams opened by the peer.

Returns the datagram stream for sending and receiving datagrams.

Close closes the listener. Any pending accept promises will be rejected with errors.

Opens and returns a bidirectional stream.

Opens and returns a unidirectional stream.

Jump to headingsendDatagram(data: Uint8Array): Promise<void>

Send a datagram. The provided data cannot be larger than maxDatagramSize.

Jump to headingreadDatagram(): Promise<Uint8Array>

Receive a datagram.

Back to top