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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:15:44+00:00 2026-06-18T19:15:44+00:00

I’ve been working with signalR for a little while now and this is the

  • 0

I’ve been working with signalR for a little while now and this is the first instance of a problem I have a come across.

I have a client at domain “x” connected to my hub server on domain “y”. all is well… however when i try to invoke the client side method using a Client.Group(groupID).someMethod the client connected from outside of the hub domain isn’t getting a response? however if i use Client.All.someMethod everything works fine (The client gets a response).

Am I missing something when it comes to the groups and cross domain support?

Also, i had a little trouble getting the connection to the server hub from the outside domain, In the examples on github it wasn’t clear if the reference in the head should be:

<script src="http://localhost:61215/signalr/hubs" type="text/javascript"></script>

or

<script src="/signalr/hubs" type="text/javascript"></script>

the latter didn’t work…

Thanks in advance

  • 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-18T19:15:45+00:00Added an answer on June 18, 2026 at 7:15 pm

    Your issue with groups is likely do to the fact that groups aren’t automatically rejoined when a client reconnects. This isn’t an issue when running on the same domain because your clients are likely using the forever-frame or server-sent-events transport which won’t reconnect unless there is some issue with the underlying connection.

    However, cross-origin access to SignalR requires either the WebSocket or long-polling transport. The latter is likely being used in your case considering the issue you are having with groups. (NOTE: Your SignalR server needs to be running .NET 4.5 on Windows 8 or 2012 to support WebSockets). The long-polling transport has to reconnect to the SignalR server every time it receives messages.

    To fix this issue with the following:

    namespace MySignalRApplication
    {
        public class Global : System.Web.HttpApplication
        {
            protected void Application_Start(object sender, EventArgs e)
            {
                GlobalHost.HubPipeline.EnableAutoRejoiningGroups();
            }
        }    
    }
    

    By calling GlobalHost.HubPipeline.EnableAutoRejoiningGroups() you are allowing clients to rejoin groups when they reconnect. However, SignalR as of RC2 doesn’t verify the reconnecting clients were previously in the groups they are trying to rejoin. Of course, a well-behaving client will only try to rejoin groups it was previously in, but enabling automatic group rejoining on RC2 allows attackers to add themselves to any group. This is not an issue for many applications, but that’s why group rejoining isn’t enabled by default.

    In the RTM version of SignalR, automatic group rejoining will be enabled by default. The list of groups the client tries to rejoin with will also be signed by the server making it much more secure.

    As for your second question:

    When ever you load JavaScript hosted on a domain that is different from the HTML being served, the script src must contain the absolute URL.

    <script src="/signalr/hubs" type="text/javascript"></script>
    

    The above contains a relative URL which is why it doesn’t work.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have been unable to fix a problem with Java Unicode and encoding. The
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.