update to types
This commit is contained in:
20
dist/server/channels/sites/mhsChannel.js
vendored
Normal file
20
dist/server/channels/sites/mhsChannel.js
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const channelBase_1 = require("../channelBase");
|
||||
class MHSChannel extends channelBase_1.default {
|
||||
broadcastMessage(from, message) {
|
||||
for (let client of this.clients) {
|
||||
if (client != from) {
|
||||
client.ws.send(message);
|
||||
console.log(`sent to ${client.id}: %s`, message);
|
||||
console.log(message);
|
||||
}
|
||||
else {
|
||||
console.log('client is same as sender');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
;
|
||||
exports.default = MHSChannel;
|
||||
//# sourceMappingURL=mhsChannel.js.map
|
Reference in New Issue
Block a user