Comments (1)
The problem is in this part of the code, when the hub connection is starting is not setting _connectionsIsOpen to true, then the state is connected but _connectionIsOpen is not.
if (_hubConnection.state != HubConnectionState.Connected) {
await _hubConnection.start();
_connectionIsOpen = true;
}
I set the _conncetionIsOpen = true above the hub connection start and it works but this is not a good solution, because the connection cannot start for whatever reason, you should validate it first
if (_hubConnection.state != HubConnectionState.Connected) {
_connectionIsOpen = true;
await _hubConnection.start();
}
from signalr_client.
Related Issues (20)
- Not able to specify Hub in server. HOT 1
- Error when trying to invoke async server method
- #23 No work with .Net , just work with .Net core HOT 1
- Signal R Core Can't Connect when deployed to IIS
- It is not possible to use hubConnection.start().then(onValue, onError)
- Cannot set headers to connection HOT 1
- Unhandled Exception: type 'GeneralError' is not a subtype of type 'Error' in type cast. HOT 7
- Dose't support asp.net mvc HOT 5
- Support AspNetCore 3.1 HOT 13
- VM chatmessages disapper when disconnected HOT 2
- SocketException: Reading from a closed socket HOT 1
- Run in background service HOT 5
- CERTIFICATE_VERIFY_FAILED HOT 3
- Flutter SignalR method not being invoked correctly HOT 4
- How to Use HOT 1
- Pass parameter
- Invalid argument(s): Response Content-Type not supported: [application/json; charset=UTF-8]
- Wouldn't compile, missing lib quiver
- Error when using with token HOT 1
- Is the project abandoned? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalr_client.