Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Additional options for IO #530

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/sdk/conference/signaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,19 @@ export class SioSignaling extends EventModule.EventDispatcher {
* @param {string} host Host of the portal.
* @param {string} isSecured Is secure connection or not.
* @param {string} loginInfo Information required for logging in.
* @param {string} options Additional options for IO.
* @private.
*/
connect(host, isSecured, loginInfo) {
connect(host, isSecured, loginInfo, options) {
return new Promise((resolve, reject) => {
const opts = {

const opts = Object.assign({
'reconnection': true,
'reconnectionAttempts': reconnectionAttempts,
'force new connection': true,
};
'force new connection': true,
}, options);


this._socket = io(host, opts);
['participant', 'text', 'stream', 'progress'].forEach((
notification) => {
Expand Down