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.
thanks!