4 ms·
I'm currently using the `ws` library for a custom live-streaming solution (broadcasting binary data) and the memory/CPU usage is indeed not small for a handful
by samsonradu 10y ago
I'm currently using the `ws` library for a custom live-streaming solution (broadcasting binary data) and the memory/CPU usage is indeed not small for a handful of clients. What does `uws` bring new (technically) to the table?
- alexhultman 10y agoThere is nothing new brought to the table, feature wise. Same old ws interface, you keep your current code unchanged. Swap require('ws') with require('uws') and see how it works for your code, report any issues if you need them fixed. Well, of course there is a 20-30x perf boost, 10-40x memory improvement compared to ws (as the benchmark table shows).
- samsonradu 10y agoYes, I've seen the very simple integration, I'll definitely give it a try. I was actually curious how you've achieved that performance boost?
- alexhultman 10y agoI get this question quite often, here is a good start: https://github.com/alexhultman/uWebSockets/issues/56 https://github.com/alexhultman/uWebSockets/issues/56
- samsonradu 10y agoCool, hope it's ok for others to read https://www.reddit.com/r/cpp/comments/4ccpsa/%C2%B5websockets_highly_scalable_c11_websocket_server/ https://www.reddit.com/r/cpp/comments/4ccpsa/%C2%B5websocket...
- alexhultman 10y agohttps://www.youtube.com/watch?v=fN1WBgS9u_E https://www.youtube.com/watch?v=fN1WBgS9u_E
- 131hn 10y agoWhat can of live feed are you using/trying to read ? I'm very interested in this, can you give me details ?
- samsonradu 10y agoSomething like this [1]. It can go over 20fps and looks pretty smooth on iOS devices, no sound though. [1] http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets http://phoboslab.org/log/2013/09/html5-live-video-streaming-...
- 131hn 10y agoMay i suggest you to take a look on https://github.com/131/h264-live-player https://github.com/131/h264-live-player (with ws :p)
- deleted 10y ago[deleted]
- samsonradu 10y agoThanks, taking a look now.