Chat freely about anything...

User avatar
By AdrianM
#72485 Hi rudy, I wonder what advantages there are over one or other of these techniques? Do you have a link to sample code for a bidirectional web-socket connection that you could point me to?
User avatar
By rudy
#72491 This is a simple one. https://gist.github.com/bbx10/667e3d4f5f2c0831d00b

From what I remember, websockets might not work in a corporate network or through a VPN. Websockets changes the connection to an "upgraded" protocol. It starts with a http connection and then follows different rules after the upgrade. I think server-sent events might work under more situations than websockets.