greenart7c3 on Nostr: This is something that happens in all browsers and all operating systems. When the ...
This is something that happens in all browsers and all operating systems. When the device is low on memory and you leave the web page it disconnects from the relays and when the user opens the page again it connects to it again.
I don't know if there's some event listener for checking of the user is back on the web page again.
I had some success in simulating this using a 8gb Mac. using a private window you send the connect event, minimize the web page and accept the event in the signer, after that you open the page again and the login didn't happen.
You may need something to use a lot of memory and/or CPU like building a rust project or building amethyst
From what I remember
brugeman (nprofile…wthp) worked on those diconnections in the nostr-login widget, Maybe he know better why browsers have this problem
Published at
2025-02-22 10:19:59Event JSON
{
"id": "e9c0a678f75e4c77a6ca29898f0170a3c6efdd185e7dbba9fc662401ea2677be",
"pubkey": "7579076d9aff0a4cfdefa7e2045f2486c7e5d8bc63bfc6b45397233e1bbfcb19",
"created_at": 1740219599,
"kind": 1,
"tags": [
[
"e",
"565345a5d103040c7496995c5eb4fb6922a5e2b24fb111e0ae4b4388fe3cc512",
"",
"root"
],
[
"p",
"59d2f8224069dfbaa9405db3a0371ee4baac48a0f40164341fa9a9df691b8b5e"
],
[
"p",
"2efaa715bbb46dd5be6b7da8d7700266d11674b913b8178addb5c2e63d987331"
],
[
"p",
"bbf923aa9246065f88c40c7d9bf61cccc0ff3fcff065a8cb2ff4cfbb62088f1e"
],
[
"p",
"8125b911ed0e94dbe3008a0be48cfe5cd0c0b05923cfff917ae7e87da8400883"
],
[
"p",
"3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd",
"",
"mention"
]
],
"content": "This is something that happens in all browsers and all operating systems. When the device is low on memory and you leave the web page it disconnects from the relays and when the user opens the page again it connects to it again.\nI don't know if there's some event listener for checking of the user is back on the web page again.\nI had some success in simulating this using a 8gb Mac. using a private window you send the connect event, minimize the web page and accept the event in the signer, after that you open the page again and the login didn't happen.\nYou may need something to use a lot of memory and/or CPU like building a rust project or building amethyst\n\nFrom what I remember nostr:nprofile1qqsrx4k7vxeev3unrn5ty9qt9w4cxlsgzrqw752mh6fduqjgqs9chhgpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7auwthp worked on those diconnections in the nostr-login widget, Maybe he know better why browsers have this problem",
"sig": "e09181d1e64deff3e7992bc6582335d15444fac08656d193da5abed4e9d9149bda12c54443f97475791661217fb3cf877635ff92b570cd46f47a0e376ba18306"
}