Hermes
Simulation Orchestration Platform for Aerospace
Loading...
Searching...
No Matches
hermes.server.protocol.ServerMessage Class Reference

Public Member Functions

str to_json (self)
bytes to_bytes (self)

Static Public Attributes

dict payload = field(default_factory=dict)

Detailed Description

Message sent from server to client.

Attributes:
    type: Message type (schema, event, error, ack)
    payload: Message-specific data

Member Function Documentation

◆ to_bytes()

bytes hermes.server.protocol.ServerMessage.to_bytes ( self)
Serialize message to bytes for transmission.

◆ to_json()

str hermes.server.protocol.ServerMessage.to_json ( self)
Serialize message to JSON string.

Member Data Documentation

◆ payload

dict hermes.server.protocol.ServerMessage.payload = field(default_factory=dict)
static

The documentation for this class was generated from the following file: