O'Reilly logo

HTML5: Your visual blueprint™ for designing rich web pages and applications by Adam McDaniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required