Relative Content

Tag Archive for node.jsaws-lambdawebsocketaws-api-gateway

PostToConnection only getting executed at the next lambda invocation

I have an API Gateway integrated with Lambda. I’m trying to do something inside ‘processStuff’ route and then notify users once the processing is done. The problem is the notification (PostToConnection) only happens at the next lambda invocation. How do I make sure that PostToConnection is done before lambda finishes executing