How it works
Full-duplex
After an HTTP upgrade handshake, both sides can send messages at any time over one connection.
Versus polling
They avoid the overhead of repeated polling and the one-way limits of server-sent events.
Scaling
Many open connections need connection-aware balancing and a pub-sub layer to fan out messages across servers.