Update chatroom.HTML

This commit is contained in:
Dangrainage 2023-08-28 21:30:26 +02:00 committed by GitHub
parent f73ad34140
commit ca495e8e8a
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 using the Echo Test Service // Create a WebSocket connection using your WebSocket service's endpoint
const socket = new WebSocket('wss://echo.websocket.org'); const socket = new WebSocket('wss://your-websocket-endpoint');
// Handle WebSocket open event // Handle WebSocket open event
socket.addEventListener('open', () => { socket.addEventListener('open', () => {