Dustin Dannenhauer on Nostr: Would relays be kicking me off or just decide to stop responding if I'm subscribed ...
Would relays be kicking me off or just decide to stop responding if I'm subscribed for too long? Is there any way I could detect that if it happens?
I should say that what I'm trying to do is run a python program that forever listens for DVM related events. I've been using a version of nostr_client() from here:
https://github.com/believethehype/nostrdvm/blob/main/tests/test_dvm_client.py It does look like this has been updated since I last started using it, maybe I should adapt this most recent code.
Published at
2024-05-08 07:18:45Event JSON
{
"id": "7e21246e7fea5f09eb7b088314ac4e52f2f129b84bf6364cb93272eea7cbed7f",
"pubkey": "da18e9860040f3bf493876fc16b1a912ae5a6f6fa8d5159c3de2b8233a0d9851",
"created_at": 1715145525,
"kind": 1,
"tags": [
[
"e",
"a6b02ce0eaa96dea65ea2957e267b7caaf350d375bf21d2e37e1dbf80a3a3971",
"wss://nos.lol/",
"root"
],
[
"e",
"a6b02ce0eaa96dea65ea2957e267b7caaf350d375bf21d2e37e1dbf80a3a3971",
"wss://nos.lol/",
"reply"
]
],
"content": "Would relays be kicking me off or just decide to stop responding if I'm subscribed for too long? Is there any way I could detect that if it happens?\n\nI should say that what I'm trying to do is run a python program that forever listens for DVM related events. I've been using a version of nostr_client() from here: https://github.com/believethehype/nostrdvm/blob/main/tests/test_dvm_client.py \n\nIt does look like this has been updated since I last started using it, maybe I should adapt this most recent code. ",
"sig": "16b3c95ddf67eda81217ed9c917d1ce64a6003b0843d0c31642c5cfa94f598287886398e33518999f05a0ece2456745470fa029d3b75f8048443b6df60e6e96c"
}