Fix socket.io connection for reverse proxy deployments
Replace deprecated document.domain + port construction with io() which auto-connects to the serving host regardless of proxy setup.
This commit is contained in:
parent
f963cd9443
commit
c0ec5ded04
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
<script>
|
||||
// Connect to the server using socket.io
|
||||
const socket = io.connect(window.location.protocol + "//" + document.domain + ":" + location.port);
|
||||
const socket = io();
|
||||
</script>
|
||||
|
||||
<!-- Link to the favicon -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue