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

A AWS Lambda compatible pack for using SignalR on ApiGateway Websockets and DynamoDb/Redis

License

Notifications You must be signed in to change notification settings

eByte23/Amazon.Lambda.SignalR

Repository files navigation

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

About

A AWS Lambda compatible pack for using SignalR on ApiGateway Websockets and DynamoDb/Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published