Course lesson
Broadcast a Mocked Message to All WebSocket Clients
Letting you know about the WebSocket connections isn't the only thing a WebSocket link can do. In fact, it also gives you a broadcast() method to send a message to all the connected clients. Let's use that to broadcast a chat message in our app across...
- Duration
- 1 min
- Access
- Free
- Transcript
- Needs source
Letting you know about the WebSocket connections isn't the only thing a WebSocket link can do. In fact, it also gives you a broadcast() method to send a message to all the connected clients. Let's use that to broadcast a chat message in our app across multiple open browser tabs.