Subject: xmpp on error
when this function get called.??
- private void OnError(object sender, Exception ex)
- {
- var context = GlobalHost.ConnectionManager.GetHubContext<ChatHub>();
- foreach (string connectionId in ChatHub.GetUserConnections(((XmppClientConnection)sender).Username))
- {
- context.Clients.Client(connectionId).showServerError("Server not reachable. Please try later.!");
- }
- }