- Added optional
pb.realtime.onDisconnect
hook function.
Note that the realtime client autoreconnect on its own and this hook is useful only for the cases where you want to apply a special behavior on server error or after closing the realtime connection.