There is nothing wrong with server side events. I even played with them already. But for bi-directional communication we do have to use websockets and it's the good tool for the job. If you'd like to see maybe event…
rapind did nice experiment in comments above.
Thanks for that experiment!
Difference with cgi is that they are live and die, with each user request. websocketd programs are more like "one per user session"... Makes sense when your user sessions are lengthy.
Please ignore complexity of supplied examples... It's really not for that kind of use. I have lots of scripts that do something like this (and most of them are not in bash :)...): while read ARG; do if validate $ARG;…
Since there is so much pointless discussion about use of text streams under this comment. When someone has example of situation when binary, json or other communication between websocketd and program is needed, please…
Untold rule is not to run "sudo websocketd --devconsole bash" :)
Not supported in any of IE versions... https://status.modern.ie/serversenteventseventsource?term=Ev... And WebSockets is working since IE10 https://status.modern.ie/websocket?term=WebSocket
There is closed ticket (github.com/joewalnes/websocket) where we were battling this out, you're always welcome to join with good ideas, that would be appreciated.
Pretty much. Good example is Joe's vmstats https://github.com/joewalnes/web-vmstats
Also websocketd is multiplatform and does not require python. Neither good or bad, just another difference :) Also, not sure if websocketify can but websocketd also has --dir argument and can supervise and route many…
There is nothing wrong with server side events. I even played with them already. But for bi-directional communication we do have to use websockets and it's the good tool for the job. If you'd like to see maybe event…
rapind did nice experiment in comments above.
Thanks for that experiment!
Difference with cgi is that they are live and die, with each user request. websocketd programs are more like "one per user session"... Makes sense when your user sessions are lengthy.
Please ignore complexity of supplied examples... It's really not for that kind of use. I have lots of scripts that do something like this (and most of them are not in bash :)...): while read ARG; do if validate $ARG;…
Since there is so much pointless discussion about use of text streams under this comment. When someone has example of situation when binary, json or other communication between websocketd and program is needed, please…
Untold rule is not to run "sudo websocketd --devconsole bash" :)
Not supported in any of IE versions... https://status.modern.ie/serversenteventseventsource?term=Ev... And WebSockets is working since IE10 https://status.modern.ie/websocket?term=WebSocket
There is closed ticket (github.com/joewalnes/websocket) where we were battling this out, you're always welcome to join with good ideas, that would be appreciated.
Pretty much. Good example is Joe's vmstats https://github.com/joewalnes/web-vmstats
Also websocketd is multiplatform and does not require python. Neither good or bad, just another difference :) Also, not sure if websocketify can but websocketd also has --dir argument and can supervise and route many…