mirror of
https://github.com/edumeet/edumeet.git
synced 2026-07-29 22:10:40 +00:00
Fix: websocket signaling take now same port as webserver
This commit is contained in:
parent
e192f4e424
commit
e5ff6db780
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
|||
export function getProtooUrl(peerName, roomId)
|
||||
{
|
||||
const hostname = window.location.hostname;
|
||||
const url = `wss://${hostname}:3443/?peerName=${peerName}&roomId=${roomId}`;
|
||||
const port = window.location.port;
|
||||
const url = `wss://${hostname}:${port}/?peerName=${peerName}&roomId=${roomId}`;
|
||||
|
||||
return url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue