This document discusses real-time communication techniques like websockets and compares them to traditional polling. It explains that websockets provide full-duplex, low latency connections supported by modern browsers. Websockets can be used for chat, social feeds, and collaborative editing. The document also provides code samples for setting up websocket servers with Node.js and Socket.io. It discusses challenges like statefulness, scalability, and broadcasting to multiple clients.
25. RESOURCES
http://socket.io
Socket.IO Swift client
https://github.com/socketio/socket.io-client-swift
Benefits of Web Sockets
https://www.websocket.org/quantum.html
Web Sockets API
http://dev.w3.org/html5/websockets/
Web Sockets RFC
https://tools.ietf.org/html/rfc6455
Difference between polling, long polling and web sockets explained:
http://stackoverflow.com/questions/10028770/html5-websocket-vs-long-polling-vs-ajax-
vs-webrtc-vs-server-sent-events
http://stackoverflow.com/questions/11077857/what-are-long-polling-websockets-server-
sent-events-sse-and-comet