Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/practical-rust-web-projects
/ Client
Class
Client
Ch04/websocket/examples/unresponsive_client.rs:5–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
use ws::{connect, CloseCode, Frame, Message, OpCode, Result};
4
5
struct Client {
6
out: ws::Sender,
7
}
8
impl ws::Handler for Client {
9
fn on_frame(
10
&mut self,
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected