Kieran -- 11d Yes, but idle connections are not free, it should be activity based not absolute timeout reply [1 reply]Yes, but idle connections are not free, it should be activity based not absolute timeout
thread · root 00000d3c…d68a · depth 4 · · selected cc458675…d901
thread
root 00000d3c…d68a · depth 4 · · selected cc458675…d901
what's the best way to send pings to relays in order to keep the connection alive and avoid reconnections?#asknostr
Websocket supports ping pong messages
but isn't that server initiated? so it would be the relay doing it not the client… some relays keep closing theconnection after some idle time which is dumb since this is nostr and we want to keep things up for newmessages, so the client needs to keep sending some shit to keep it going..
Yes, but idle connections are not free, it should be activity based not absolute timeout
balas -- 11d [parent] | reply [1 reply]but isn't that server initiated? so it would be the relay doing it not the client… some relays keep closing the connection after some idle time which is dumb since this is nostr and we want to keep things up for new messages, so the client needs to keep sending some shit to keep it going..