Wednesday, 12 November 2025
  3 Replies
  4.9K Visits
  Subscribe
Trying out the WS and SignalR clients. Have a .net webapi with a SignalR hub named "signalr" running on http://localhost:5000. Can connect and receive messages with a .net client. The negotiation request is "POST http://localhost:5000/signalr/negotiate?negotiateVersion=1".

When I use the Delphi SignalR component with Host=localhost, Port=5000, and TLS=False, the negotiation is "GET http://localhost:5000/signalr/negotiate?clientProtocol=1.2". I switched to SignalRCore and now I get the correct POST. So I guess SignalRCore is the correct choice here?

How do I receive messages with SignalRCore? SignalR has an OnSignalRMessage event but SignalRCore does not. All of my messages are one way server->client.

Thanks, Jim
3 weeks ago
·
#2372
Hi,

No problem, thanks for the update.

Kind regards,
Sergio
3 weeks ago
·
#2371
I swear I tried OnSignalRCoreInvocation yesterday and nothing happened but yeah now it's working. Never mind!
3 weeks ago
·
#2370
Hello,

Usually you'll receive in the event OnSignalRCoreInvocation. There is a demo in the folder "Demos\01.WebSocket_Quick_Start\02.WebSocket_Clients_APIs" which shows how to use it. You can check the documentation here:

https://www.esegece.com/help/sgcWebSockets/#t=Components%2FAPIs%2FAPI%2FAPI_SignalRCore.htm

Kind Regards,
Sergio
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf,pas,dfm,dpr,dproj,dpk,txt,log
· Insert · Remove
  Upload Files (Maximum 10MB)