Comments (12)
Same as #36. This library is a aspnet core signalr implementation, but hubs you are connecting to are asp signalr hubs, protocol is different from aspnet core signalr hubs. Did you try this library https://pypi.org/project/signalr-client/ ?
from signalrcore.
Yes, my bad. I will look into it more carefully. My apologies, you must have a lot of these questions a day. It is all a bit confusing.
from signalrcore.
Don't mind, you can ask anything. Is the other library maintained yet? . If is not, did would you consider useful, an option to a backwards compatibility with previous signalr?.
from signalrcore.
Seems outdated to me.
from signalrcore.
Your library was useful, i had to change the https into wss, my bad.
from signalrcore.
However. i don't understand
hub_connection.stream(
"Counter",
[10, 500]).subscribe({
"next": lambda x: print("next callback: ", x),
"complete": lambda x: bye(False, x),
"error": lambda x: bye(True, x)
})
as the documentation hasn't been clear on this? What does [10, 500] refer to? Also how would this work out with https://github.com/simplefx-ltd/simplefx-api#subscribe-for-quotes ? I am in confusion :)
from signalrcore.
As i said documentation that are pointing on simplefx is a aspnet signalr hub, this library is an aspnet core signalr hub. However, as i read in docs you need first to send a 'subscribeList' and then listen to a 'ReceiveQuotes', this subscription that you are calling is to stream a certain number of elemets(https://docs.microsoft.com/es-es/aspnet/core/signalr/streaming?view=aspnetcore-3.1).
from signalrcore.
So there is no way that this can work with this library? Because it appears to, with the correct send and receive messages set up? So i can't send/receive message with this library? Also i still don't know what [10, 500] is used for in example:"
hub_connection.stream(
"Counter",
[10, 500]).subscribe({
"next": lambda x: print("next callback: ", x),
"complete": lambda x: bye(False, x),
"error": lambda x: bye(True, x)
})
I don't think i understand.
from signalrcore.
In the example [10, 500] meaning was 10 items 500 ms interval per item. Works with this example.
If this api is an old aspnet signalr you can use https://pypi.org/project/signalr-client/.
I never made aspnet signalr implementation on python becaouse this client already had been working.
from signalrcore.
The signalr-client actually gives the same error. Error 400, the same as this library. So i suppose either im doing the same thing wrong twice or this library could also work?
from signalrcore.
i believe it is using the newer version of signalr aspnet. how would one even make a aspnet signalr implementation to begin with?
from signalrcore.
@mandrewcito , would you be so kind to delete this issue please?
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
- Can you publish this fix "Patched websocket transport to support websocket-client 1.0.0" HOT 2
- Sever-Sent-Events (SSE) connection problem HOT 3
- 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.