What is Nostr?
jimbocoin / jimbocoin 🃏
npub1v9q…9q3h
2024-09-13 21:59:20
in reply to nevent1q…um0y

jimbocoin on Nostr: If we’re gonna go binary, then I’d prefer to just go full binary. WebSockets ...

If we’re gonna go binary, then I’d prefer to just go full binary. WebSockets support binary mode. We could encode these messages using CBOR and suffer minimal loss on the wire. This would still be compatible with stream compression, AFAIK.

Encoding binary data as a string can be completely avoided for this new message type, since both ends of the connection are expected to handle binary payloads anyway. The usual argument of avoiding a human-unreadable format is moot here, IMO.
Author Public Key
npub1v9qy0ry6uyh36z65pe790qrxfye84ydsgzc877armmwr2l9tpkjsdx9q3h