"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const channelBase_1 = require("../channelBase");
var logger = require('../../logger');
class MHSChannel extends channelBase_1.default {
    broadcastMessage(from, message) {
        for (let client of this.clients) {
            if (client != from && client.data.user_type == 'teacher') {
                client.ws.send(message);
                logger.accessLog.info(`sent to ${client.id}: `, { message: message });
            }
            else {
                logger.accessLog.info(`client is same as sender: ${client.id} - `, { message: message });
            }
        }
        return { 'status': 'success', 'message': `message broadcast complete` };
    }
}
;
module.exports = MHSChannel;
exports.default = MHSChannel;
//# sourceMappingURL=mhsChannel.js.map