Update chatroom.HTML

This commit is contained in:
Dangrainage 2023-08-28 21:10:20 +02:00 committed by GitHub
parent 8667843eed
commit 61d7c87fa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,8 @@
const messageInput = document.getElementById('message'); const messageInput = document.getElementById('message');
const sendButton = document.getElementById('send'); const sendButton = document.getElementById('send');
// Create a WebSocket connection // Create a WebSocket connection using the Echo Test Service
const socket = new WebSocket('ws://your-server-url'); const socket = new WebSocket('wss://echo.websocket.org');
// Handle incoming messages from the server // Handle incoming messages from the server
socket.addEventListener('message', event => { socket.addEventListener('message', event => {