Before calling methods that require the HubConnection to be connected we run a simple connection state check like https://github.com/aspnet/AspNetCore/blob/e310ccac7b30e901f657f81c86c4048fecfedf7b/src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java#L464-L466 We don't have this check for the `invoke` method.