Also opened this as an issue here but hoping someone has seen this..
I've got a very simple hub that implements IConnected/IDisconnect. In a standalone project, this hub tested out great.
When I dropped it into my real project, where I already have some other hubs, adding it resulted in no hubs being available (confirmed that none show up in /signalr/hubs). I then commented out IConnected/IDisconnect in this hub and re-compiled, and it showed up along with the rest. Adding the interfaces back broke it all.
Has anyone seen this before? Is there some configuration missing or something?
public class ChatHub : Hub, IConnected, IDisconnect
{
public void Test(string message)
{
}
public System.Threading.Tasks.Task Connect(IEnumerable<string> groups)
{
this.Clients.onNewUserOnline(Context.ConnectionId);
return new Task(() => { });
}
public Task Reconnect(IEnumerable<string> groups)
{
this.Clients.onNewUserOnline(Context.ConnectionId);
return new Task(() => { });
}
public Task Disconnect()
{
this.Clients.onUserOffline(Context.ConnectionId);
return new Task(() => { });
}
}