newuser-630ab751-595b-4ecf-b4e3-e9e75cb909b1 avatar image

How to call AWS API Gateway Websocket route/api from lamba function

I am trying to open a websocket connection from a lambda function. I need to pass a JSON object to a route. How to send the JSON object to wss:// from the lambda function?

Basically, I want to send some data from Alexa, via a lambda function to a socket route and broadcast this to a number of connected web clients.

I have the socket working via wscat by sending the JSON object via the command line but need to send the JSON object from the lambda function.

Any advice appreciated.


alexa skills kitlambda
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers