Remove option to configure multiPartyMeeting server, use window.location.hostname
This commit is contained in:
1 parent
b4ad79d5f9
commit
71e695b912
2 files changed
+1
-4
No files matched your search
@@ -1,14 +1,12 @@
|
||||
export function getSignalingUrl(peerId, roomId)
|
||||
{
|
||||
const hostname = window.config.multipartyServer;
|
||||
|
||||
const port =
|
||||
process.env.NODE_ENV !== 'production' ?
|
||||
window.config.developmentPort
|
||||
:
|
||||
window.config.productionPort;
|
||||
|
||||
const url = `wss://${hostname}:${port}/?peerId=${peerId}&roomId=${roomId}`;
|
||||
const url = `wss://${window.location.hostname}:${port}/?peerId=${peerId}&roomId=${roomId}`;
|
||||
|
||||
return url;
|
||||
}
|
||||
Reference in new issue
Block a user