baking-bad / pysignalr Goto Github PK
View Code? Open in Web Editor NEWModern, reliable and async-ready client for SignalR protocol
License: MIT License
Modern, reliable and async-ready client for SignalR protocol
License: MIT License
So in my app I have this..
public async Task SendTradeSocketNotification(string socketName, ulong account, string message)
{
// Log the socketname and message
logger.LogDebug($"Socket: {socketName} - {message}");
// Send it out TS{SocketName} and TS{SocketName}+{AccountNumber}
await hubContext.Clients.Group($"TS{socketName}").SendAsync("ReceiveTradeSocketNotification", socketName, message);
await hubContext.Clients.Group($"TS{socketName}+{account}").SendAsync("ReceiveTradeSocketNotification", socketName, message);
}
I'm definteely adding the caller to the group... but I'm never seeing this on the receiving end.. Is there a special way to be able to receive messages back from the siganlr app that receive multiple arguments?
Hi. Can you give me an example how to call "send" method that returns some value?
In my hub i have that method
public async Task<string> A()
{
var message = $"Recieved: [{DateTime.Now}]";
return $"C# -> {message}";
}
in python i should use something like that except questions.
???
await client.send('A', [], ???)
print(???)
What should i write instead of questions?
I use this library with blender bpy, and sometimes the rendering (which is a synchronous operation) exceeds the value of KeepAliveInterval
. In this case, I want to try to restore the connection.
What should i do?
It would be great with a release that supports Python 3.12.
(Current release is listed as supporting <3.12 on pypi).
It would be nice to be able to apply an accesstoken factory method, generating the authentication tokens for secured connections.
Also we need a way to get the connection id to setup grouped and channel specific communication.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.