(&self, data: &[u8])
| 108 | #[cfg(not(target_arch = "wasm32"))] |
| 109 | impl WebSocketState { |
| 110 | pub fn send_binary(&self, data: &[u8]) { |
| 111 | let _ = self.tx.send(OutgoingWsMessage::Binary(data.to_vec())); |
| 112 | } |
| 113 | |
| 114 | pub fn send_text(&self, text: &str) { |
| 115 | let _ = self.tx.send(OutgoingWsMessage::Text(text.to_owned())); |
no test coverage detected