subscribe

Subscribes to network state changes through a listener.

Parameters

listener

Handler which receives connection change events.