Why do I have to encrypt and send multiple messages to the push server?

I'm somewhat interested in how it works but I'm more concerned that as soon as I open the app I have 5+ signing requests that I have to blindly sign

Reply to this note

Please Login to reply.

Discussion

This is because, in the 0xchat implementation, a heartbeat event (encrypted) is sent every minute.

The reason for using heartbeat events is that the push server relies on them to determine whether the app is online. If it receives an offline event or does not receive a heartbeat event for an extended period, it assumes the app is offline.

I bet we could come up with a way to do hash-based heartbeats rather than encrypted ones (or use an ephemeral key) to avoid the signer requests