4 ms·
And the first thing that people do when they start using websockets is to define a message layer. HTTP is designed for transferring media types. It can transfe
by rswail 4y ago
And the first thing that people do when they start using websockets is to define a message layer.
HTTP is designed for transferring media types. It can transfer the application/octet-stream if you want to transfer "raw" binary.
If want you want to do is stream binary data, there are better protocols than TCP or UDP for the purpose. The use of Websockets is a way to get binary streams through the HTTP "firewall hole" on port 80/443, not because it is more efficient.