Pepguy commited on
Commit
975319a
·
verified ·
1 Parent(s): d770303

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
app.js CHANGED
@@ -28,7 +28,7 @@ app.get('/', (req, res) => {
28
  function joinRoom() {
29
  try {
30
  const roomId = document.getElementById('room').value;
31
- ws = new WebSocket('ws://' + location.host);
32
  ws.onopen = () => {
33
  ws.send(JSON.stringify({ action: 'join', roomId }));
34
  currentRoom = roomId;
 
28
  function joinRoom() {
29
  try {
30
  const roomId = document.getElementById('room').value;
31
+ ws = new WebSocket('wss://' + location.host);
32
  ws.onopen = () => {
33
  ws.send(JSON.stringify({ action: 'join', roomId }));
34
  currentRoom = roomId;