ConnectionEvent: {
    data: boolean;
    type: connection;
}

Event trigger when connection status changes. With the new connection status.

ConnectionEvent