endpoint: QuicEndpointThe endpoint for this connection.
handshake: Promise<void>Returns a promise that resolves when the TLS handshake is complete.
remoteAddr: NetAddrReturn the remote address for the connection. Clients may change addresses at will, for example when switching to a cellular internet connection.
protocol: string | undefinedThe negotiated ALPN protocol, if provided. Only available after the handshake is complete.
serverName: string | undefinedThe negotiated server name. Only available on the server after the handshake is complete.
closed: Promise<QuicCloseInfo>Returns a promise that resolves when the connection is closed.
incomingBidirectionalStreams: ReadableStream<QuicBidirectionalStream>A stream of bidirectional streams opened by the peer.
incomingUnidirectionalStreams: ReadableStream<QuicReceiveStream>A stream of unidirectional streams opened by the peer.
maxDatagramSize: numberReturns the datagram stream for sending and receiving datagrams.
close(info?: QuicCloseInfo): voidClose closes the listener. Any pending accept promises will be rejected with errors.
createBidirectionalStream(options?: QuicSendStreamOptions): Promise<QuicBidirectionalStream>Opens and returns a bidirectional stream.
createUnidirectionalStream(options?: QuicSendStreamOptions): Promise<QuicSendStream>Opens and returns a unidirectional stream.
sendDatagram(data: Uint8Array): Promise<void>Send a datagram. The provided data cannot be larger than
maxDatagramSize.
readDatagram(): Promise<Uint8Array>Receive a datagram.