News for hackers. Stuff that matters.
Re:Why does gRPC insist on trailers? by jjtheblunt on Sunday August 07, 2022 @08:16PM (#32381230)
> WebSocket can run on top of HTTP/2

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?

Re:Why does gRPC insist on trailers? by wmf on Sunday August 07, 2022 @08:19PM (#32381242)
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:

https://en.wikipedia.org/wiki/WebSocket

Re:Why does gRPC insist on trailers? by jhugo on Monday August 08, 2022 @02:36AM (#32382903)
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.