var context = GlobalHost.ConnectionManager.GetHubContext<ClientNotificationsHub>(); context.Clients.All.DisplayMessage();
$(function () { var hub = $.connection.dbHub; hub.client.displayMessage = function () { alert("Success"); }; $.connection.hub.start().done(function () { var userId = '<%=Session("iUserId")%>'; var connection = '<%=Session("sDBConnection")%>'; hub.server.setConnection(userId, connection); }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)