Fix some typos and wrong code in bbb-webrtc-sfu

This commit is contained in:
Lucas Fialho Zawacki 2018-04-26 22:15:25 +00:00
parent 08a86d2a5f
commit b38a096ed5
2 changed files with 1 additions and 3 deletions

View File

@ -113,7 +113,7 @@ module.exports = class BigBlueButtonGW extends EventEmitter {
writeMeetingKey(meetingId, message, callback) {
const EXPIRE_TIME = config.get('redisExpireTime');
if (!this.client) {
if (!this.publisher) {
this.publisher = new RedisWrapper();
this.publisher.startPublisher();
}

View File

@ -71,13 +71,11 @@ module.exports = class ConnectionManager {
const screenshare = await this._bbbGW.addSubscribeChannel(C.FROM_SCREENSHARE);
const video = await this._bbbGW.addSubscribeChannel(C.FROM_VIDEO);
const audio = await this._bbbGW.addSubscribeChannel(C.FROM_AUDIO);
const toAkka = await this._bbbGW.addSubscribeChannel(C.TO_AKKA_APPS);
const emitFunk = (data) => {
this._emitter.emit('response', data);
};
toAkka.on(C.REDIS_MESSAGE, emitFunk);
screenshare.on(C.REDIS_MESSAGE, emitFunk);
video.on(C.REDIS_MESSAGE, emitFunk);