Message from JavaScript talks

March 2017

— Websockets are a thing you can open and send stuff across and the thing you are sending to can send stuff back

Message permanent page


But unlike other things where you send stuff and it sends stuff back it can keep the connection open and send stuff to you even if you don't ask

— That's the tl;dr version

— Or python

— If you want to connect two clients directly, you can use webrtc

— Thanks, and no problem at all

— Maybe, maybe it's bad that web rely only on using JavaScript on the client side, and as JavaScript Fan Boy still I would love to see web navigators supporting other language or standard.
On the other side JS had born to be the web client programming language.

Message permanent page

— It is really that bad?

— It is a persistent TCP connection, which for now you can establish via an HTTP Upgrade request

— You can use many different communication protocols over websockets as well

— It is also bidirectional, which means a server may push data to a client

— In the way it's used by many websites, yes