Skip to content

How does a client tell the server what group it wants to be in or what user it is? #7255

@grahambunce

Description

@grahambunce

Scenario: Multiple listeners deployed worldwide, each listener belongs to a group. When a message is published it belongs to every listener in the group (or if you want to design it as such, to that user which has multiple listeners attached). How does the listener, using the .NET client, tell the hub what group it's in (or what user it is)?

From what I can gather (this article doesn't make it clear), I can pass context on the client query string and then access this HTTP context in the OnConnected event of the Hub.

I worked this out by trial and error..... I'm sorry, but a number of these examples are just too simple and leave many questions unanswered as a tutorial.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Source - Docs.msDocs Customer feedback via GitHub Issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions