Comments (2)
I think that your error is related with the connection state. On the first snnipet that you provided contection is started but you are not waiting for the handshake. You need adding a callback method to your code. Once handshake is finished 'on_open' method is inovked
https://github.com/mandrewcito/signalrcore#on-connect--on-disconnect
You have a lot of examples on my post at dev.to and in the tests folder. If you continue having problems let me know :D
from signalrcore.
oh, I see now! didn't expect start()
to be non-blocking call. I was heavily affected by assumption that non-blocking calls are "marked" somehow, like in .net: startAsync()
vs start()
, which is silly thing to assume for other languages. I guess you right, and tickets I've read yesterday was about the same thing actually (connection state).
Thank you for such a quick reply! this should of been "stackoverflow" question, not a github ticket xD
from signalrcore.
Related Issues (20)
- on_reconnect event is not triggered
- on_error function is not called
- reconnect_interval does not seem to have any affect
- {TypeError}Object of type WebSocketService is not JSON serializable
- Custom client cert HOT 1
- Client results
- Problems on "hub_connection.send()" call directly after starting the connection HOT 1
- Unable to subscribe to events with multiple parameters
- async python support HOT 1
- Spelling error HOT 1
- Feature: Support .net allowReconnect type
- Problem with serialization
- A way to handle messages without event?
- send method use same uuid str eveytime. cause incorrect CompletionMessage. HOT 2
- Why does the library support sending bytes, but not accepting bytes? HOT 1
- The Readme is outdated
- http and https transport "invalid"
- Connecting to Azure SignalR managed service seems impossible. HOT 1
- Reconnect logic spamming logs and creating threads until resource exhaustion occurs
- invoke equivalend command in this library
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 signalrcore.