onConnectionStatusChanged

This function will be called when the connection status changes.

Parameters

status

The current status of the connection.

reason

Reason for changing status