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

Serverless with local emulator REST API endpoint #299

Open
hernandoz opened this issue Jan 4, 2025 · 1 comment
Open

Serverless with local emulator REST API endpoint #299

hernandoz opened this issue Jan 4, 2025 · 1 comment

Comments

@hernandoz
Copy link

Hi I have a working solution using Serverless with Azure Functions and the Local Emulator for serverless development.

I am trying to send messages using the REST API (from outside the Hub Class) but I don't know the local endpoint for the Local Emulator , if I set the endpoint to the azure services it works , I can see the log on the Live Trace tool , but my clients are connecting to the emulator and they don't receive the message (which makes senses).

so my question how do I setup the REST API to send massages to the local emulator ?

private readonly string _localEndpoint = "http://localhost:7071/runtime/webhooks/signalr";

Thanks.

@vicancy
Copy link
Contributor

vicancy commented Jan 6, 2025

When local emulator starts, it prints the connection string which contains an "Endpoint=...Port=..." part. This is the endpoint+port for local emulator, for example, with the default settings asrs-emulator start, the connection string is Endpoint=http://localhost;Port=8888;AccessKey=..., for this one, the endpoint is http://localhost:8888. And for example, the health check URL will be http://localhost:8888/api/health.

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