Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (27 loc) · 1.73 KB

README.md

File metadata and controls

43 lines (27 loc) · 1.73 KB

SignalR for AWS APIGatway Sockets

What is this projects goal?

This projects goal is to be able to plug into Asp.Net Core Webapi on lambda running SignalR. We would utilise one lambda func for all api and socket interactions.

Stages

  • - Make an APIGateway and Websockets gateway work together happily = [ ] - Write tests
  • - Clean Up API lineup more with SignalR (e.g. hub activator)
  • - Work on SignalR API's
  • - Ask for help to make it better

Useful repo links

https://github.com/aws/dotnet https://github.com/aws/aws-lambda-dotnet

Notes

This is fixed in own fork of the below repo.

Howvever on mainstream branch. When running websocket request through api we get errors in https://github.com/aws/aws-lambda-dotnet/blob/master/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs

protected override void MarshallRequest(InvokeFeatures features, APIGatewayProxyRequest apiGatewayRequest, ILambdaContext lambdaContext)

One or more errors occurred. (Object reference not set to an instance of an object.): AggregateException
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at lambda_method(Closure , Stream , Stream , LambdaContextInternal )

at Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction.MarshallRequest(InvokeFeatures features, APIGatewayProxyRequest apiGatewayRequest, ILambdaContext lambdaContext)
at Amazon.Lambda.AspNetCoreServer.AbstractAspNetCoreFunction`2.FunctionHandlerAsync(TREQUEST request, ILambdaContext lambdaContext)
at serverless.test.WarmAPIGatewayProxyFunction.FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext) in C:\Developer\ITFA\serverless.test\src\ServerlessTest\LambdaEntryPoint.cs:line 133