Jun 19, 2019 09:49 AM|murali krishna14|LINK
Hi Fei Han,
Thank you so much.
and i have 2 more last doubts.
1.if i want to pass any data to singal r hub like userid,user roleId etc then i am passing with the help of query string only.
var hv = $('#ctl00_hdnUser').val();
var chat = $.connection.chatHub;
$.connection.hub.qs = 'user=' + hv;
is there any other way (without using query string) to pass data to hub. because by using query string data is showing in Network calls.
2.how can i call server hub method from c# code behind?
for example in my above example i have method called NotificationSend in the Hub class?
is it possible to call hub method from any server side event like button click?
if it is possible then message will send to all apps(app1,app2,app3) from single button click