Loading...
Loading...
#[ossido::client_ws_event("name")] - a JSON event the **client sends** to the server. Applies #[ossido::Type] (serde + TypeScript) and marks the struct as a ClientWsEvent.
A JSON event the client sends to the server. Applies everything `#[Type]` does (serde + generated TypeScript) and marks the struct as a `ClientWsEvent`, so the type system only lets you parse these from an inbound frame. A bare identifier also works as the name: `#[client_ws_event(chat_message)]`.