Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a strongly typed SignalR Hub when using Mangament #1775

Open
ZisisTsatsas opened this issue Apr 3, 2023 · 6 comments
Open

How to add a strongly typed SignalR Hub when using Mangament #1775

ZisisTsatsas opened this issue Apr 3, 2023 · 6 comments

Comments

@ZisisTsatsas
Copy link

Can I add a strongly typed SignalR Hub when using Management on a serverless configuration?

I want to add a strongly typed hub in my signalr service to be used by the client, is this possible when using Management and ServiceHubContext?

If not how can invoke methods from clients? Send messages between clients or have clients add themselves to groups for example.

@Y-Sindo
Copy link
Member

Y-Sindo commented Apr 5, 2023

Although strongly typed hub is supported, client invocation is not supported yet. Duplicated: #1756

@ZisisTsatsas
Copy link
Author

is there plans for it to be supported?

@Y-Sindo
Copy link
Member

Y-Sindo commented Apr 6, 2023

is there plans for it to be supported?

Yes

@Y-Sindo
Copy link
Member

Y-Sindo commented Oct 26, 2023

@ZisisTsatsas Sorry that I have found that I may misunderstand your problem. What you want to do in Call hub methods from clients, right? It's not convenient to achieve it only with Management SDK. We recommend you use Azure Functions with SignalR trigger.

Please note that Strongly typed hubs in SignalR is more of the data flow from server to client.

Feel free to ask more questions.

@ZisisTsatsas
Copy link
Author

@Y-Sindo Is there a way to do this without Azure Functions? Currently, I am hosting SignalR alongside my API in an Azure WebApp and I am using Redis Stack to have consistency over different regions, but it has some issues so I want to switch to the Azure SignalR service

@Y-Sindo
Copy link
Member

Y-Sindo commented Oct 26, 2023

Yes, you can do this without Azure Functions. SignalR trigger is nothing more than a REST API server that handles client events. Therefore, you can also implement a REST API server to do this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants