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
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