I am trying to create a basic example of using API Gateway WebSocket connecting to an AWS Lambda function.
I followed the example from this link.
The goal is to have one Lambda csproj with multiple entry-points (functions), same as specified in the example above.
API Gateway:
I have four routes, all of them connecting to the same lambda function: cgavan-websocket-2:
$connect$disconnectecho$default
Lambda function:
I have a lambda project with four different functions:
Connect.FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context)Disconnect.FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context)Echo.FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context)Default.FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context)
Question:
How can I specify, for each of the API Gateway routes, which function handler to invoke from the Lambda csproj?
Right now, when I connect to the API Gateway WebSocket (with the WebSocket Request Route: $connect), it always invokes the Default.FunctionHandler().

