@signalwire/js
Advanced tools
Comparing version
@@ -242,3 +242,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
infoChannelHandler(params) { | ||
const { eventData } = params; | ||
const { eventData = null } = params; | ||
if (!eventData) { | ||
return logger.warn('Unknown conference info event', params); | ||
} | ||
switch (eventData.contentType) { | ||
@@ -251,3 +254,3 @@ case 'layout-info': | ||
default: | ||
logger.error('Conference info unknown contentType', params); | ||
logger.warn('Unknown conference info event', params); | ||
} | ||
@@ -273,7 +276,5 @@ } | ||
updateLayouts(params) { | ||
const { contentType, callID, canvasType, canvasInfo = null, currentLayerIdx = null } = params, rest = __rest(params, ["contentType", "callID", "canvasType", "canvasInfo", "currentLayerIdx"]); | ||
const { contentType, callID, canvasType, canvasInfo = null, currentLayerIdx = -1 } = params, rest = __rest(params, ["contentType", "callID", "canvasType", "canvasInfo", "currentLayerIdx"]); | ||
this.canvasType = canvasType; | ||
if (currentLayerIdx !== null) { | ||
this.participantLayerIndex = currentLayerIdx; | ||
} | ||
this.participantLayerIndex = currentLayerIdx; | ||
if (canvasInfo !== null) { | ||
@@ -350,4 +351,7 @@ this.canvasInfo = mutateCanvasInfoData(canvasInfo); | ||
_dispatchConferenceUpdate(params) { | ||
this.session.calls[this.callId]._dispatchNotification(Object.assign({ type: Notification.ConferenceUpdate }, params)); | ||
const call = this.session.calls[this.callId]; | ||
if (call) { | ||
call._dispatchNotification(Object.assign({ type: Notification.ConferenceUpdate }, params)); | ||
} | ||
} | ||
} |
@@ -42,3 +42,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (!callID || !session.calls.hasOwnProperty(callID)) { | ||
return logger.warn('Unhandled session event:', eventData); | ||
return logger.debug('Unhandled session event:', eventData); | ||
} | ||
@@ -45,0 +45,0 @@ const call = session.calls[callID]; |
import Relay from './src/SignalWire'; | ||
import Verto from './src/Verto'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export declare const VERSION = "1.3.0-alpha.7.2"; | ||
export declare const VERSION = "1.3.0-alpha.7.3"; | ||
export { Relay, Verto, CantinaAuth }; | ||
export * from '../common/src/util/interfaces'; | ||
export * from '../common/src/webrtc/interfaces'; |
@@ -5,4 +5,4 @@ import Relay from './src/SignalWire'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export const VERSION = '1.3.0-alpha.7.2'; | ||
export const VERSION = '1.3.0-alpha.7.3'; | ||
setAgentName(`JavaScript SDK/${VERSION}`); | ||
export { Relay, Verto, CantinaAuth }; |
{ | ||
"name": "@signalwire/js", | ||
"version": "1.3.0-alpha.7.2", | ||
"version": "1.3.0-alpha.7.3", | ||
"description": "Relay SDK for JavaScript to connect to SignalWire.", | ||
@@ -5,0 +5,0 @@ "author": "SignalWire Team <open.source@signalwire.com>", |
Sorry, the diff of this file is too big to display
304474
0.06%4330
0.09%