Skip to content

Commit

Permalink
Cofigura ws
Browse files Browse the repository at this point in the history
  • Loading branch information
weslley17w committed Sep 16, 2024
1 parent 633726d commit 59ac45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ <h2 class="mdc-dialog__title" id="my-dialog-title">Join room</h2>
<script>

const urlHost = window.location.host;
const wsUrl = (urlHost === 'webrt-f83c2.web.app') ? 'wss://web-rtc-i6u8.onrender.com:8080' : 'ws://localhost:8080';
const ws = new WebSocket('wss//web-rtc-i6u8.onrender.com:10000');
const wsUrl = (urlHost === 'webrt-f83c2.web.app') ? 'wss//web-rtc-i6u8.onrender.com:10000' : 'ws://localhost:8080';
const ws = new WebSocket(wsUrl);
const messages = document.getElementById('messages');
const messageInput = document.getElementById('messageInput');
const username = prompt("Digite seu nome:");
Expand Down

0 comments on commit 59ac45c

Please sign in to comment.