Skip to content

Service & Client Protocols

Crazy Chenz edited this page Oct 25, 2019 · 3 revisions

Client Initiated Protocols

Service Initiated Protocols

Client & Service Initiated Protocols

Ping a.k.a "Echo Request/Response"

  • All services and clients must respond to valid echo requests.
  • The only valid purpose of an echo request for a client is to verify service responsiveness.
  • The only valid purposes of an echo request for a client is to verify client responsiveness and client latency.

Echo Request Message

Property Type Description
channel_id int Channel ID
direction int Direction
data string Data to echo

Example Echo Request:

{
    'type': 'echo_request',
    'direction': [direction],
    'channel_id': [channel_id],
    'data': "[data]"
}

Echo Response Message

Property Type Description
channel_id int Channel ID
direction int Direction
data string Data to echo

Example Echo Request:

{
    'type': 'echo_response',
    'direction': [direction],
    'channel_id': [channel_id],
    'data': "[data]"
}

Clone this wiki locally