@signalwire/js
Advanced tools
Comparing version 1.3.0-cantina.40 to 1.3.0-cantina.41
import BrowserSession from '../BrowserSession'; | ||
export default function infoChannelHandler(session: BrowserSession, params: any): void; | ||
export declare const publicInfoMethods: { | ||
getLayoutInfo: () => void; | ||
infoCommand: (command: string, id: string, value: any) => any; | ||
getLayoutInfo: () => any; | ||
}; |
@@ -0,1 +1,12 @@ | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
import logger from '../util/logger'; | ||
@@ -51,8 +62,18 @@ import { ConferenceAction } from './constants'; | ||
}; | ||
function _infoCommand(params) { | ||
const _a = this, { session, nodeId, channel } = _a, rest = __rest(_a, ["session", "nodeId", "channel"]); | ||
if (!channel) { | ||
return console.warn('Missing modChannel'); | ||
} | ||
const data = Object.assign(Object.assign({ application: 'conf-control' }, rest), params); | ||
session.vertoBroadcast({ nodeId, channel, data }); | ||
} | ||
export const publicInfoMethods = { | ||
infoCommand: function (command, id, value) { | ||
return _infoCommand.call(this, { command, id, value }); | ||
}, | ||
getLayoutInfo: function () { | ||
const { session, nodeId, channel } = this; | ||
const data = { application: 'conf-control', command: 'get-layout-info' }; | ||
session.vertoBroadcast({ nodeId, channel, data }); | ||
} | ||
const params = { command: 'get-layout-info' }; | ||
return _infoCommand.call(this, params); | ||
}, | ||
}; |
import Relay from './src/SignalWire'; | ||
import Verto from './src/Verto'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export declare const VERSION = "1.3.0-cantina.40"; | ||
export declare const VERSION = "1.3.0-cantina.41"; | ||
export { Relay, Verto, CantinaAuth }; | ||
@@ -6,0 +6,0 @@ export * from '../common/src/webrtc/deviceHelpers'; |
@@ -5,5 +5,5 @@ import Relay from './src/SignalWire'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export const VERSION = '1.3.0-cantina.40'; | ||
export const VERSION = '1.3.0-cantina.41'; | ||
setAgentName(`JavaScript SDK/${VERSION}`); | ||
export { Relay, Verto, CantinaAuth }; | ||
export * from '../common/src/webrtc/deviceHelpers'; |
{ | ||
"name": "@signalwire/js", | ||
"version": "1.3.0-cantina.40", | ||
"version": "1.3.0-cantina.41", | ||
"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
392308
5785