Remix - Advanced Patterns
Identify the error in this Remix WebSocket client code:
const socket = new WebSocket('ws://localhost:3000');
socket.onmessage = (event) => {
console.log(event.data);
};
socket.send('Hello');