Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9163413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:26:30+00:00 2026-06-17T14:26:30+00:00

$.connection.hub.error(function (err) { alert(Error signalR: + JSON.stringify(err)); }); What can I use this function

  • 0
$.connection.hub.error(function (err) {
                alert("Error signalR:" + JSON.stringify(err));
            });

What can I use this function for? It always displays this more often when running on mobile devices, and it never provides any information. So how do you use it?

I never experiences SignalR breaking down because of this either, so should I just comment it out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:26:31+00:00Added an answer on June 17, 2026 at 2:26 pm

    For runtime cases .error is useful in unique browser/client scenarios that don’t work with your implementation. For instance, lets say you have an application that requires SignalR to only use the web sockets or server sent events transports:

    $.connection.hub.start(["serverSentEvents","webSockets"]);
    

    This means that SignalR will not be able to successfully start a connection in < IE 10. So utilizing .error in this scenario will allow you to notify a user that they do not have real time capability enabled due to their browser choice.

    Ultimately it becomes useful based on what you’re trying to accomplish. One additional example is that dfowler in JabbR uses it to clear his “pending message” queue https://github.com/davidfowl/JabbR/blob/master/JabbR/Chat.js#L978.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following alert is fired in my app, but JSON.stringify(err) is always . Is
I have a website that has SignalR hub, in this hub I need to
I am using SignalR. The function on the Hub often return a Task. I
When navigating away from a page that has signalR connection/connected hub I get the
I am getting error while i call start on SignalR connection object. I am
Connection conn = getDBConnection(); //MYSQL CONNECTION. conn.prepareStatement(use testspl).execute(); conn.prepareStatement(SOURCE c:\Test.sql).execute() Is this right way
How can i create/convert this script into model in Backbone that can use SignaR
I'm looking for advice on how best to handle Signalr hub connections in a
MySQL connection in PHP can be established in two ways: $mysql = new mysqli('localhost',
This is how my connection is set: Connection conn = DriverManager.getConnection(url + dbName +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.