Function handle_control

Source
pub async fn handle_control<S>(
    msg: &Message,
    wrt: &mut WebSocketWriter<S>,
) -> Result<bool, WebSocketError>
where S: AsyncWrite + Unpin,
Expand description

handles control message (ping, pong) to make sure the socket stays open