News for hackers. Stuff that matters.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by LunaSea on Friday October 24, 2025 @03:28PM (#45698247)
> Worth noting that wbesockets in the browser don't allow custom headers

They do during the initial handshake (protocol upgrade from HTTP to WebSocket).

Afterwards the message body can be used to send authorisation data.

Server support will depend on tech but Node.js has great support.

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by fyrn_ on Friday October 24, 2025 @09:48PM (#45700773)
https://github.com/whatwg/websockets/issues/16

No, I don't think you get it. `new Websocket()` from JS takes no arguments for headers. You literally can't send headers during the handshake from JS. https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/W...

Actually will look into using the subprotocol as a way to do auth, but most impls in the wild send the auth as the first message.

The fact the protocol in theory supports it doesn't really matter much since no browser implements that part of the spec.