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