(
&mut self,
frame: Frame,
)
| 87 | } |
| 88 | |
| 89 | fn on_frame( |
| 90 | &mut self, |
| 91 | frame: Frame, |
| 92 | ) -> Result<Option<Frame>> { |
| 93 | if frame.opcode() == OpCode::Pong { |
| 94 | println!("Received a pong"); |
| 95 | // Reset the CLIENT_UNRESPONSIVE timeout |
| 96 | self.out.timeout(15_000, CLIENT_UNRESPONSIVE)?; |
| 97 | } |
| 98 | |
| 99 | Ok(Some(frame)) |
| 100 | } |
| 101 | |
| 102 | fn on_close(&mut self, code: CloseCode, reason: &str) { |
| 103 | println!( |
nothing calls this directly
no outgoing calls
no test coverage detected