Here is my wcfService code -
public class SystemService : ISystemService
{
private IHubContext hubContext;
public SystemService()
{
hubContext = GlobalHost.ConnectionManager.GetHubContext<WebApplication1.MyHub1>();
}
public void SendMessage(string sender, string message)
{
hubContext.Clients.All.SendMessage(sender, message);
}
}
My web application with signalR hub is working fine.
namespace WebApplication1
{
[HubName("myHub1")]
public class MyHub1 : Hub
{
public void SendMessage(string name, string message)
{
// Call the broadcastMessage method to update clients.
Clients.All.broadcastMessage(name, message);
}
}
}
Only the messages from wcf client are not received. No error messages in tracelog. If possible can anyone advice what I am missing here. please ask if any other details needed.