The state returned by useSubscription.
useSubscription
Close the subscription.
The last error that occurred, if any.
All events received so far (newest last).
The most recently received event.
Send a message to the server (bidirectional subscriptions).
Current connection state.
The state returned by
useSubscription.