* slight update to docs

This commit is contained in:
Seth Call 2012-09-03 16:48:51 -05:00
parent ecc46f95d5
commit a3058f0f70
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
// adding a new message:
// within ClientMessage block,
// create a new field in the enum Type section (100s are meant to be normal messages; 1000s are meant to be errors). It will have new field number X
// create a optional message of the same name, and use the same field number X.
// create a optional message of the same name (but lower-case! the json code requires this), and use the same field number X.
// then at bottom of the file (or wherever; just outside any existing blocks), add your message definition.
package jampb;
@ -16,11 +16,11 @@ message ClientMessage {
USER_JOINED_JAM_SESSION = 104;
LEAVE_JAM_SESSION = 105;
LEAVE_JAM_SESSION_ACK = 106;
HEARTBEAT = 107;
HEARTBEAT = 107;
TEST_SESSION_MESSAGE = 200;
TEST_SESSION_MESSAGE = 200;
SERVER_GENERIC_ERROR = 1000;
SERVER_GENERIC_ERROR = 1000;
SERVER_REJECTION_ERROR = 1001;
}