UNPKG

jarvisnode

Version:

A library written in Node.js used to communicate with my Jarvis project

39 lines (37 loc) 671 B
/** * Jarvis byte codes definitions * @module jarvisnode/modules/types */ module.exports = { // Byte which indicates the message type // while communicating with sockets between devices messages: { // UDP protocol message types UDP: { J: { OFFLINE: 0x0F, ONLINE: 0xFF, ADDRESS: 0xAA, }, S: { DISCONNECT: 0x0F, HEART_BEAT: 0x00, EVENT: 0x01 } }, TCP: { J: { EXEC_COMMAND: 0x10, REQUEST_STATE: 0x20 }, S: { REGISTER_REQUEST: 0x00, CONN_REQUEST: 0x01, REGISTER: 0x02, } } }, err: { FLAG: 0xEE } };