Join Nostr
2025-10-24 21:59:55 UTC

Arjen on Nostr: Thinking about it. Transmitting Nostr events over WebSockets doesn't make much sense ...

Thinking about it. Transmitting Nostr events over WebSockets doesn't make much sense from a networking perspective. It's quite inefficient...

TCP has checksums to guarantee perfect transmission and always acks every transmission. And websockets live on top of that, meaning more complexity/delays.

1) In Nostr events, the checksum is already in the event itself (id/signature)

2) Nostr is stream based (more like udp), we don't have to ack everything.

3) Nostr events have a standard format, meaning you can strip off the json during transport.

So in layer terms:
WebSocket -> TCP -> IP -> PHYSICAL
becomes
'NoStride' -> IP -> PHYSICAL

In a fully nostrified world, i can see a protocol for JUST nostr subscriptions be justifiable.

K, GN
Interesting deep dive into TCP

https://www.youtube.com/watch?v=rmFX1V49K8U