Re: HTML5 Server-Sent Events
Posted:
Wed Dec 13, 2017 11:37 am
by AdrianM
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?
Re: HTML5 Server-Sent Events
Posted:
Wed Dec 13, 2017 5:20 pm
by rudy
This is a simple one.
https://gist.github.com/bbx10/667e3d4f5f2c0831d00bFrom 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.