MCPcopy Create free account
hub / github.com/PerroEngine/Perro / send_pong

Method send_pong

perro_source/api_modules/perro_networking/src/websocket.rs:391–395  ·  view source on GitHub ↗
(&mut self, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

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, "")

Callers 1

websocket_send_pongMethod · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected