I recently tried updating to signalR 1.0.0 Alpha2. I went through the wiki, changed what I thought I needed to change, also made sure that the assembly was loaded with new files. Here is my js:
$(function () { var Chat = $.connection.ChatHub; ... $.connection.hub.start( .done(function(){ alert("Now connected!"); }) .fail(function(){ alert("Could not Connect!"); }); });
Here is my hub class:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR.Hubs; using MyProject.Domain.Abstract; using Microsoft.AspNet.SignalR; using System.Threading.Tasks; using System.Diagnostics; using System.Web.Security; using MyProject.Domain.Entities; using System.Web.Script.Serialization; using System.Text.RegularExpressions; using MyProject.Domain.Concrete; using MyProject.Domain.Helpers; using System.Web.Mvc; namespace MyProject.Web.RealTime { public class ChatMessage { public string ChatId { get; set; } public string Message { get; set; } public string FullName { get; set; } public string Time { get; set; } public string School { get; set; } public string Major { get; set; } public string ImageUrl { get; set; } } [HubName("ChatHub")] public class Chat : Hub {
On the client side, I get a connection message, but when I start debugging and put a breakpoint in the "OnConnected" task, it never breaks or starts nothing in my hub class. what can i do wrong
This is my build for the new SignalR:

I used this in my NinjectWebCommon.cs file in the App_Start folder, but since I updated it, it has given me errors, so I commented on this, it may also be a problem, but not sure, because signalR.ninject seems to be not working or gave me a bunch of errors:
GlobalHost.DependencyResolver = new NinjectDependencyResolver(kernel); GlobalHost.DependencyResolver.Register(typeof(IConnectionIdGenerator), () => new MyConnectionFactory()); RouteTable.Routes.MapHubs(new NinjectDependencyResolver(kernel));
source share