You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
512 B

export const SESSION = Object.freeze({
OPENED: 0, // nothing sent/recved yet
READY: 1, // init complete
CLOSED: 2, // socket closed, but we might continute this same session on another socket
});
export const EVENT = Object.freeze({
PREDRAW: 10,
STROKE: 20,
UNDO: 30,
REDO: 31,
});
export const MESSAGE = Object.freeze({
INIT: 100,
SYN: 101,
ACK: 102,
FULL: 103,
FIRE: 104,
JOIN: 105,
});
export const SNS = Object.freeze({
DESK: 1,
SESSION: 2,
});