# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
MessageTypeAccept is a successful response to an open request.
MessageTypeClose is sent when the session MUST close.
MessageTypeError is sent on a general protocol violation/error.
MessageTypeOpen allocates a new peer-to-peer deviceconnect session.
MessageTypePing sends a ping.
MessageTypePong is sent in response to a MessageTypePing.
No description provided by the author
ProtoInvalid signifies an invalid (uninitialized) ProtoMsg.
ProtoTypeControl is a reserved proto type for session control messages.
ProtoTypeFileTransfer is used for file transfer from/to the device.
ProtoTypeMenderClient is used for communication with the Mender client.
ProtoTypePortForward is used for port-forwarding connections to the device.
ProtoTypeShell is used for communicating remote terminal session data.
# Structs
Accept is the schema for the message type "accept" for a successful response to a ProtoMsg handshake.
The Error struct is passed in the Body of MessageTypeError.
Open is the schema used for initiating a ProtoMsg handshake.
ProtoHdr provides the info about what the ProtoMsg contains and to which protocol the message should be routed.
ProtoMsg is a wrapper to messages communicated on bidirectional interfaces such as websockets to wrap data from other application protocols.
# Type aliases
ProtoType defines how the ProtoMsg should be interpreted.