«Reducing kilobytes of data to 2 bytes... and reducing latency from 150ms to 50 ms is far more than marginal. Infact, these two factors alone are enough to make WebSocket seriously interesting...»
Various example of server- and client-side websokets APIs demonstrated on PrincetonJUG.
Refer to my presentation slides