xmpp - signal R OnConnected is not calling -
i have 2 pages login , chat, want use login page login purpose rest of functionality i.e roster presence on chat page. onconnected
of hub not calling when not have client message on login page??
problem in above scenario connectionid not creating.
however, make dummy client function on login page call onconnected
method of hub, , connection id created.
i have test scenario below code
i don't need client message in login page, how can achieve
//when message recieve //chat.client.onmessage = function () { // alert('receieve message on every tab'); //}; //// signalr callbck incoming presence //chat.client.onpresence = function () { // alert('presence call'); //}; <script type="text/javascript"> $(function () { // declare proxy reference hub. var chat = $.connection.chathub; $.connection.hub.start() });
i have mapping on
Comments
Post a Comment