[][src]Function oc_http::websocket::handle_control

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

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