Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All messages, request and response, except handshake, start with unsigned integerint message length (excluding the length itself).

  • Any MsgPack unsigned integer int type can be used , so that shorter messages use smaller type to encode length(see varint above). Empty message will be single 0 byte.
  • Maximum message length is 2147483647 (Integer.MAX_VALUE and maximum byte array length in Java)

...

Clients should expect notification messages at any moment after the successful handshake.

Notification
intType = 1
intNotification code
...Notification-specific data


Operation codes and request ids are omitted everywhere below for brevity.

...