Doug Hoyte on Nostr: Actually strfry *does* compress relay->client messages by default, using websocket ...
Actually strfry *does* compress relay->client messages by default, using websocket per-message compression with sliding window (if supported by client).
This is configurable with the relay.compression.enabled and relay.compression.slidingWindow parameters in the beta branch.
The strfry logs also include the compression negotation parameters on client connect, and the total compression ratios on disconnect (up and down).
Published at
2023-02-17 22:53:17Event JSON
{
"id": "465cfb6f1aff7024e835cfd0d55574167c43f7c942461d398f25374c251baf44",
"pubkey": "218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d",
"created_at": 1676674397,
"kind": 1,
"tags": [
[
"e",
"e523f9e8a65b644c2bed211ba329c11e3f2e1f6edba2612b08126fd11e2c27d7",
"",
"root"
],
[
"e",
"cd0c61216f70fc4fcd33614a169c5c5149d3fc72d69969f1cdb7f8f0d0a9f07e",
"",
"reply"
],
[
"p",
"6c0e9016b9c1efe7edef87e505e2a1e03db1fbbcfdc3ed6b4f8aaa4b540ad98f"
],
[
"p",
"17538dc2a62769d09443f18c37cbe358fab5bbf981173542aa7c5ff171ed77c4"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "Actually strfry *does* compress relay-\u003eclient messages by default, using websocket per-message compression with sliding window (if supported by client).\n\nThis is configurable with the relay.compression.enabled and relay.compression.slidingWindow parameters in the beta branch.\n\nThe strfry logs also include the compression negotation parameters on client connect, and the total compression ratios on disconnect (up and down).",
"sig": "64b7389de8be807c5fd59f3ffcb5732e1b71e7fb06d9a21a08bde7199a7bcace0b845d6b80faeae0c56cb4854d5c42e06ce2454ea833deb1cc60d3b03cfd7a95"
}