3 ms·
The thing with WebSockets is that they are message oriented. WebSockets endpoints are presented with a series of distinct messages, whereas stdin/stdout are str
by minimax 12y ago
The thing with WebSockets is that they are message oriented. WebSockets endpoints are presented with a series of distinct messages, whereas stdin/stdout are stream based and you have to build messaging on top, if that's what you want. I guess the idea here is that you are just using '\n' as the message delimiter?
- asergeyev 12y agoPretty much. Good example is Joe's vmstats https://github.com/joewalnes/web-vmstats https://github.com/joewalnes/web-vmstats