Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/practical-rust-web-projects
/ JSONMessage
Class
JSONMessage
Ch04/websocket/examples/json_chat_server.rs:12–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
11
#[derive(Serialize, Deserialize)]
12
struct JSONMessage {
13
name: String,
14
message: String,
15
}
16
17
fn main() {
18
listen(
"127.0.0.1:8080"
, |out| {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected