SignalR doesn't work with Chrome and Internet Explorer
<p>I have Windows 10 operating system and installed Chrome, Firefox and Internet Explorer browsers. I try to build an app with SignalR notification system in asp.net MVC. When I run my application under Firefox, everything works fine. But under Internet Explorer and Google Chrome it doesn't work. 
What I found when debbuging is that when the change in my DataBase is made, the application does execute correctly following method:</p>

<pre><code>    private void sqlDep_OnChange(object sender, SqlNotificationEventArgs e)
    {
        if(e.Type == SqlNotificationType.Change)
        {
            SqlDependency sqlDep = sender as SqlDependency;
            sqlDep.OnChange -= sqlDep_OnChange;

            var notificationHub = GlobalHost.ConnectionManager.GetHubContext&lt;NotificationHub&gt;();
            notificationHub.Clients.All.notify("added");
            DateTime dt = DateTime.Now;
            DateTime dt1 = DateTime.UtcNow.AddHours(2);

            RegisterNotification(dt);
        }
    }
</code></pre>

<p>But when gets to </p>

<pre><code>notificationHub.Clients.All.notify("added");
</code></pre>

<p>the JavaScript which is following:</p>

<pre><code>          notificationHub.client.notify = function (message) {
            if (message &amp;&amp; message.toLowerCase() == "added") {
                updateNotificationCount();
            }
        }
</code></pre>

<p>does not react, wheras under Firefox it reacts. </p>

<p>Could you please help me solve this problem?</p>