This message was deleted.
# general
s
This message was deleted.
d
Got it. Seems to work now, but I am not sure, if I really got it right. The following code snippet seems to work (cts.signalRId is an SignalR resource ID).
ctx.eventSourceSubscription = new EventSubscription("sigrev", new EventSubscriptionArgs()
{
Scope = ctx.signalRId,
IncludedEventTypes = new InputList<string>()
{
"Microsoft.SignalRService.ClientConnectionConnected",
"Microsoft.SignalRService.ClientConnectionDisconnected",
},
AzureFunctionEndpoint = new EventSubscriptionAzureFunctionEndpointArgs()
{
FunctionId = ctx.App.FunctionApp.Id.Apply(x => string.Format($"{x}/functions/HandleOnConnectionChanged"))
},
`})`;