No, despite the name WebSockets are not plain TCP.
Re:Why does gRPC insist on trailers?
by jjtheblunt on Monday August 08, 2022 @02:31AM
(#32382879)
They're an http protocol for setting one up, you mean?
First sentence at this article:
No, they're more than that. After you upgrade to WebSocket you still have to speak the WebSocket protocol over TCP. It includes message framing — with different defined message types, masking, ping/pong, an extension system (including for example optional per-message compression), ...
Re:Why does gRPC insist on trailers?
by aaaaaaaaaaab on Monday August 08, 2022 @05:37AM
(#32383732)
TCP is a stream of bytes. WebSockets are message-based.
Isn't "websocket" just a standard tcp socket, whose specification to instantiate it was born in a comparatively ephemeral HTTP (of whatever version) request, and which outlives the request, so isn't on top of anything other than tcp?