MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / WSMessage

Struct WSMessage

shared/contracts/ws.go:6–9  ·  view source on GitHub ↗

WSMessage is the message structure for the WebSocket.

Source from the content-addressed store, hash-verified

4
5// WSMessage is the message structure for the WebSocket.
6type WSMessage struct {
7 Type string `json:"type"`
8 Data any `json:"data"`
9}
10
11type WSDriverMessage struct {
12 Type string `json:"type"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected