Skip to content

Calling methods on hub from client should be supported if serverless signalR service has upstream configured #20487

@ngufra

Description

@ngufra

[Enter feedback here]
The documentation reads:
Note
Calling hub methods from a client is only supported when using the Azure SignalR Service in Default mode. For more information, see Frequently Asked Questions (azure-signalr GitHub repository).

-1- the link to the FAQ has moved.
-2- in the FAQ we read:
Can I send message from client in serverless mode?
You can send message from client if you configure upstream in your SignalR instance. Upstream is a set of endpoints that can receive messages and connection events from SignalR service. If no upstream is configured, messages from client will be ignored.
For more information about upstream see this doc.
Upstream is currently in public preview.

So it seems it it is out of date.
An example calling hub methods from the client would be welcome. The only one i could find is the bidirectional chat at https://github.com/Azure/azure-functions-signalrservice-extension/tree/master/samples/bidirectional-chat which seems overly complicated, requires authentication, etc. ax example with plain javascript (not requiring additioanl libraries) and that could run in the signalR emulator would be preferred so we would not need to setup CORS, etc


Document Details

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions