image

© Risto Viita/Shutterstock

chapter29

Communicating via WebSockets

USERS TODAY MAKE EXTENSIVE use of texting and instant messaging to communicate. Websites often integrate text-based chats to allow them to exchange messages with technical support staff or sales team members. To make it easier for developers to integrate such capabilities, HTML 5 introduces a WebSocket application program interface (API). Admittedly, the API is still in its infancy. Over time, however, you can expect it to grow to support greater capabilities, such as peer-to-peer communication. This is communication between two applications without the use of a server as an intermediary. ...

Get Introduction to Web Development Using HTML 5 now with the O’Reilly learning platform.

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