Fixing reconnect realtime after disconnect. Added disableRealTime function