mirror of
https://github.com/status-im/status-go.git
synced 2025-02-08 21:04:27 +00:00
Currently messenger has no notion of being online. This might cause a problem as we retry to register with a push notification server even if not connected to any peer, which will inevitably fail. This commit adds a method `handleConnectionChange` that will be called every time the connection change state.