diff --git a/samples/DotnetIsolated-BidirectionChat/Functions.cs b/samples/DotnetIsolated-BidirectionChat/Functions.cs index 8ceaca41..8b2c493c 100644 --- a/samples/DotnetIsolated-BidirectionChat/Functions.cs +++ b/samples/DotnetIsolated-BidirectionChat/Functions.cs @@ -25,10 +25,11 @@ public HttpResponseData GetWebPage([HttpTrigger(AuthorizationLevel.Anonymous)] H } [Function("Negotiate")] - public SignalRConnectionInfo Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req, - [SignalRConnectionInfoInput(HubName = "Hub", UserId = "{query.userid}")] SignalRConnectionInfo signalRConnectionInfo) + public string Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req, + [SignalRConnectionInfoInput(HubName = "Hub", UserId = "{query.userid}")] string signalRConnectionInfo) { _logger.LogInformation("Executing negotiation."); + // The serialization of the connection info object is done by the framework. It should be camel case. The SignalR client respects the camel case response only. return signalRConnectionInfo; }