Last post Dec 13, 2017 03:24 AM by firstname.lastname@example.org
Dec 12, 2017 05:45 AMemail@example.com|LINK
I have a API which only send events from IntegrationServer-server to DotNetApi objects, that live on server-side app. I am developing an client application where I would like to use SignalR which is used to send the events from server-side-app
(using SignalR library ) to browser (using SignalR jQuery library). In my client application I have below event :
agent.IncomingSessionEvent += new ISEventHandler<IAgent, IncomingSessionEvent>(IncomingSessionEventHandler);
This event send customer data and I can see that in logs. But data does not get populated in CRM page. Need help in achieving this functionality using Signalr. Sample code would be appreciated. Thanks
Dec 13, 2017 03:01 AM|Fei Han - MSFT|LINK
I would like to use SignalR which is used to send the events from server-side-app (using SignalR library ) to browser (using SignalR jQuery library).
Based on your requirements, you should have server-side app, Hub server and client application. If you’d like to call Hub method to send messages (events) to client application in your server-side app, you can try to use the following code to invoke Hub
method in your server-side app.
var hub = new HubConnection("http://xxxx:port/");
var proxy = hub.CreateHubProxy("ChatHub");
//invoke hub method
data does not get populated in CRM page
If you want your clients can receive messages that are broadcast from Hub server, please make sure the clients
establish connection to your Hub server.
Dec 13, 2017 03:24 AMfirstname.lastname@example.org|LINK
Thanks Han I was actually thinking of doing so but not sure , now it's more clear to me. thanks again.