INTERACT WITH A WEBSOCKET SERVICE

Although it is outside the scope of this book to describe how to create a WebSocket service online, there are several examples available online that have open ports to which you can connect. The companion website for this book has a few demonstration WebSocket services active to which you can connect:

  • ws://html5.array.org:3000/relay — Relay WebSocket Service — This service relays any incoming messages back to all other clients currently connected.
  • ws://html5.array.org:3000/time — Time WebSocket Service — This service broadcasts the current server time every second while connected. Any messages sent are echoed back in uppercase.
  • ws://html5.array.org:3000/news — News Ticker WebSocket Service — This service accepts ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.