multiparty-meeting/app/lib/urlFactory.js

13 lines
273 B
JavaScript

'use strict';
const config = require('../config');
export function getProtooUrl(peerId, roomId)
{
let hostname = window.location.hostname;
let port = config.protoo.listenPort;
let url = `wss://${hostname}:${port}/?peer-id=${peerId}&room-id=${roomId}`;
return url;
}