subscribeToNetworkEvents

Returns a Flow of network events.

Note the event subscription is created only after the flow starts being consumed.