A hook that provides the current connection status and error, and allows the user to listen to connection status changes.
Optional
The options for the hook
The current connection status and error, as well as the Connection instance.
A hook that provides the current connection status and error, and allows the user to listen to connection status changes.