By Guest on Wednesday, 12 November 2025
Posted in General
Replies 3
Likes 0
Views 4.9K
Votes 0
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
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
·
3 weeks ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I swear I tried OnSignalRCoreInvocation yesterday and nothing happened but yeah now it's working. Never mind!
·
3 weeks ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

No problem, thanks for the update.

Kind regards,
Sergio
·
3 weeks ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post