pub async fn serve<R: ConnectionRouter>(
tcp: TcpStream,
acceptor: TlsAcceptor,
runtime: RuntimeHandle,
router: Arc<R>,
voice: Arc<VoicePlane>,
udp: Arc<UdpSocket>,
config: Arc<GatewayConfig>,
) -> Result<()>Expand description
Serve one accepted TCP connection to completion.
ยงErrors
A TLS failure, a malformed frame or a dropped socket. Any of them ends the connection cleanly: it is detached and its peer record removed.