Network: can set only one callback for detectConnection