kevoree-group-centralizedws
Version:
WebSocket group based on a centralized architecture that only sends partial model to connected clients
25 lines (17 loc) • 311 B
JavaScript
const TYPE = 'kevs';
function PushKevSMessage(kevs) {
this.kevs = kevs;
}
PushKevSMessage.prototype = {
getKevScript() {
return this.kevs;
},
getType() {
return TYPE;
},
toRaw() {
return TYPE + '/' + this.kevs;
}
};
module.exports = PushKevSMessage;
module.exports.TYPE = TYPE;