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

  • SEARCH
  • Home
  • 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 8060501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:00:52+00:00 2026-06-05T10:00:52+00:00

Also opened this as an issue here but hoping someone has seen this.. I’ve

  • 0

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(() => { });
    }
}
  • 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-05T10:00:55+00:00Added an answer on June 5, 2026 at 10:00 am

    Here is a link to a similar question
    Is there a way to get number of connections in Signalr hub group?

    If that didnt help you could look at the new Connection State stuff in SignalR 0.5.1

    Connection State Changes

    A SignalR connection has always been a black box to the user and this made it hard to detect changes in the underlying connection state. We’ve exposed a new stateChanged event in the JavaScript and .NET clients. This allows you to listen for state changes and react to them in different ways. Here’s an example that shows the user a message if the connection went into a reconnecting state and didn’t recover after 10 seconds:

    var chat = $.connection.chat;
    var timeout = null;
    var interval = 10000;
    chat.addMessage = function (msg) {
        $('#messages').append('<li>' + msg + '</li>');
    };
    $.connection.hub.stateChanged(function (change) {
        if (change.newState === $.signalR.connectionState.reconnecting) {
            timeout = setTimeout(function () {
                $('#state').css('backgroundColor', 'red')
                    .html('The server is unreachable...');
            }, interval);
        } else if (timeout && change.newState === $.signalR.connectionState.connected) {
            $('#state').css('backgroundColor', 'green')
                .html('The server is online');
            clearTimeout(timeout);
            timeout = null;
        }
    });
    $.connection.hub.start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got several questions regarding this issue 1) ActiveMQ after installed and started also
I realize there are several topics about this issue, but none provides a working
I know this has been answered here before, however even after following all the
Also what will be the scenarios where this query is used select * from
Also can you please answer this question? how do I get co-ordinates of selected
Also is it possible to combine this with removing periods from within the string?
Edit: This is indeed a bug in the compiler, I've opened a defect and
My problem is not about fixing an issue with a certain IDE, in this
I have services been called through the 'Guardian' method, that has TransactionScope opened for
i have read ASP.NET Validators inside an UpdatePanel but i still have this error:

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.