Raspberry Pi - Web Server and API
What will be the output of this JavaScript code running on a Raspberry Pi browser?
const ws = new WebSocket('ws://localhost:8080');
ws.onopen = () => ws.send('Ping');
ws.onmessage = (event) => console.log(event.data);
// Assume server replies with 'Pong' to 'Ping'
