So we have a .NET core application running on a server with SignalR, basically this application moves an object on the screen under realtime, The SignalR application have a function
public async Task SendMessage(string x, string y)
{
await Clients.All.ReceiveMessage(x, y);
}
Within the application I can send the new x and y and the object is moved, but the problem is that we get the data (x, y) from a Python application and we want to send it to the .NET Core application in real-time.
What is the best solution for this problem and also is sending and receiving the data with HTTP GET a good solution? something like:
[Route("Send/{x}/{y}")]
public async Task Send(string x, string y)
{
await _strongTagHubContext.Clients.All.ReceiveMessage(x,y);
}
I think I might have the solution to your inquiry:\\
To communicate between 2 softwares that use are "differently coded"(like DOTNET and PYTHON ), the best way is to simply connect using TCP .
Connect the TCP once both softwares are loaded and ready, and keep it alive to communicate. As simple as that
I hope that resolved your problem, let me know if that's not the case :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.