mikedilger on Nostr: I don't think in terms of formalisms, I think in terms of how to solve my problem. I ...
I don't think in terms of formalisms, I think in terms of how to solve my problem. I use channels to send messages, where the recipient might be just one or possibly many listeners, but rarely. For example, I have one-thread-per-relay, and the overlord sends a 'shutdown' message to all of them. I'm not sure if that is the "event/listener" pattern.
Published at
2023-06-21 22:41:49Event JSON
{
"id": "f5c46a158b90601f074c6ce1eeb5a4e56a5ca8b7e2c21c6ac4ced72a682baccb",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1687387309,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb"
],
[
"e",
"6a497180456b916e0783feddd2844998e3d49a59a22d74285b380d30f104b069",
"wss://nostr-pub.wellorder.net/",
"root"
]
],
"content": "I don't think in terms of formalisms, I think in terms of how to solve my problem. I use channels to send messages, where the recipient might be just one or possibly many listeners, but rarely. For example, I have one-thread-per-relay, and the overlord sends a 'shutdown' message to all of them. I'm not sure if that is the \"event/listener\" pattern.",
"sig": "5370d77c4e22aa20725bc5e69e3f55d5dcd34d0f90dcb2057cf8903911444abd59e97ebdba87d39949051fe00b1f8b9af8cc1cfd2e06b85a2d14b55cb2c2a392"
}