(&mut self, bytes: Vec<u8>)
| 389 | } |
| 390 | |
| 391 | pub fn send_pong(&mut self, bytes: Vec<u8>) -> NetResult<()> { |
| 392 | self.socket |
| 393 | .send(Message::Pong(bytes.into())) |
| 394 | .map_err(|err| NetError::new(NetErrorKind::Send, err.to_string())) |
| 395 | } |
| 396 | |
| 397 | pub fn close(&mut self) -> NetResult<()> { |
| 398 | self.close_with_reason(1000, "") |
no test coverage detected