(&mut self, bytes: Vec<u8>)
| 379 | } |
| 380 | |
| 381 | pub fn send_ping(&mut self, bytes: Vec<u8>) -> NetResult<()> { |
| 382 | self.socket |
| 383 | .send(Message::Ping(bytes.into())) |
| 384 | .map_err(|err| NetError::new(NetErrorKind::Send, err.to_string())) |
| 385 | } |
| 386 | |
| 387 | pub fn send_heartbeat_ping(&mut self) -> NetResult<()> { |
| 388 | self.send_ping(WEBSOCKET_HEARTBEAT_BYTES.to_vec()) |
no test coverage detected