Movie::Remote::WireEnvelope
Inherits JSON::Serializable < Struct < Value < Object
WireEnvelope is the envelope used for serializing messages over the wire. It contains metadata about the message type and payload.
Constructors
ask_request(target_path : String, message_type : String, payload : JSON::Any, correlation_id : String, sender_path : String | Nil = nil) : WireEnvelope
Creates an ask request envelope.
ask_response(target_path : String, message_type : String, payload : JSON::Any, correlation_id : String) : WireEnvelope
Creates an ask response envelope.
Creates a handshake envelope.
new(kind : Kind, target_path : String, message_type : String, payload : JSON::Any, correlation_id : String | Nil = nil, sender_path : String | Nil = nil, timestamp : Int64 = Time.utc.to_unix_ms)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
correlation_id
Correlation ID for request-reply patterns (ask). Used to match responses to their requests.
Correlation ID for request-reply patterns (ask). Used to match responses to their requests.
message_type=(message_type : String)
The type tag of the serialized message (for deserialization).
The path of the sending actor (nil for system/anonymous senders).