July 2012
Beginner to intermediate
342 pages
7h 27m
English
In this chapter we will cover:
socket.io socket.io transportHTTP was not made for the kind of real-time web applications that many developers are creating today. As a result, all sorts of workarounds have been discovered to mimic the idea of bi-directional, uninterrupted communication between servers and clients.
WebSockets don't mimic this behavior, they provide it. A WebSocket works by stripping down an HTTP connection so it becomes a persistent TCP-like exchange, thus removing all the overhead and restrictions HTTP introduces.
The HTTP connection is stripped (or rather upgraded) when both the ...
Read now
Unlock full access