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