greenart7c3 on Nostr: For web developers: You need to know that when a user minimizes the browser, open ...
For web developers:
You need to know that when a user minimizes the browser, open another app, open another tab or just focus on another window the browser may or may not disconnect from the relays your app is using
Its not a always disconnect, not a never disconnect but a random disconnect
So if you have nip 46 implemented or is implementing it you should code as if the relay will always disconnect and you need to reopen the relays subs again when the user is back in your app
Native > web apps
Published at
2025-02-11 21:14:09Event JSON
{
"id": "a44770741ccf9575a2971e104e015c2df5b9e69dec543752783d88dbb5275d3d",
"pubkey": "7579076d9aff0a4cfdefa7e2045f2486c7e5d8bc63bfc6b45397233e1bbfcb19",
"created_at": 1739308449,
"kind": 1,
"tags": [],
"content": "For web developers:\n\nYou need to know that when a user minimizes the browser, open another app, open another tab or just focus on another window the browser may or may not disconnect from the relays your app is using\nIts not a always disconnect, not a never disconnect but a random disconnect\nSo if you have nip 46 implemented or is implementing it you should code as if the relay will always disconnect and you need to reopen the relays subs again when the user is back in your app\n\nNative \u003e web apps\n",
"sig": "14e65e6ab9099568df95f24c600fdeb23eef46791100541ac373eaf66ba84f0c9a51d4709937f1bbc1942c53ab8135b862375255d3204b0474fc35dbd4a8dde3"
}