Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 368 Bytes

protocol.md

File metadata and controls

30 lines (23 loc) · 368 Bytes

Mirco Panda Protocol

Current Version

1

Definition

Message

{
  protocol: 'mpp.1',
  type: 'request' | 'response' | 'event',
  payload: Any,
  error: ErrorObject, // optional, for type.response
}

ErrorObject

{
  name: String,
  message: String,
  stack: String,
  
  // any other customized fields
  // ...
}