Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
asergeyev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
asergeyev
12y ago
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 source is some
2.
▲
by
asergeyev
12y ago
rapind did nice experiment in comments above.
3.
▲
by
asergeyev
12y ago
Thanks for that experiment!
4.
▲
by
asergeyev
12y ago
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.
5.
▲
by
asergeyev
12y ago
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; th
6.
▲
by
asergeyev
12y ago
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 just file a ticket, it
7.
▲
by
asergeyev
12y ago
Untold rule is not to run "sudo websocketd --devconsole bash" :)
8.
▲
by
asergeyev
12y ago
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
9.
▲
by
asergeyev
12y ago
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.
10.
▲
by
asergeyev
12y ago
Pretty much. Good example is Joe's vmstats https://github.com/joewalnes/web-vmstats
11.
▲
by
asergeyev
12y ago
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 sockets to many differe