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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.