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 8654733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:51:33+00:00 2026-06-12T14:51:33+00:00

I am using this part of code in the hub (with interface IConnected )

  • 0

I am using this part of code in the hub (with interface IConnected) of signalr. The problem is when I call Group.Add in Connect method, a client really isn’t in the group and I can’t send him a message throw this group. When I call later some method from the client to register in a group, everything is ok. What I don’t understand, in both methods(in Connect() even in registerClientToGroup()) has the same Groups.Add method.

public System.Threading.Tasks.Task Connect()
{
  Groups.Add(this.Context.ConnectionId, "group");
  return null;
}

Some ideas? Thanks a lot.

  • 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-12T14:51:34+00:00Added an answer on June 12, 2026 at 2:51 pm

    I’m not sure if this is the direct cause of your problem, but I’m surprised you are not getting errors because you are returning a null value for the Task from Connect. You probably are getting errors, you’re just not debugging/catching them.

    If you don’t have any other work to do in Connect that necessitates your own Task then simply return the Task from the call to Groups.Add like so:

    public Task Connect()
    {
        return Groups.Add(this.Context.ConnectionId, "group");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The code we're using is straightforward in this part of the search query: myCriteria.Add(
I think problem is with wrong using function or something else. This part of
im getting a weird error using this code (part of a class): from sys
I am querying my database using this code (showing part of code): In back
I'm using this part of code in my app : SimpleDateFormat sdf = new
I am using this particular part of code which i found on the net,
I am using this part of c code in carbide c/c++ char c1[]={0x01}; char
I've a method with this part of code: NSDictionary *tmpDict = [self getJsonDictionary]; NSInteger
I'm using this part of code in my system. double countA = 0.00; double
I have this part of code using primeface component : <h:outputText value=Division : />

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.