How to have a websocket connection to lambda in a green grass core

0

Hi,
I have a green grass core device in which a long lived lambda will be executing, but I need this lambda to consume messages through websocket. Is that possible? Please guide

asked 5 years ago506 views
2 Answers
0

Hi,

Yes you can use websocket inside a lambda. If your lambda is listening on a TCP port, the lambda has access to the port. If your lambda needs to bind to a socket file on the host, you can run lambda in "nocontainer" mode to set up proper file access permission.

Tutorial of "nocontainer" lambda config is here: https://docs.aws.amazon.com/greengrass/latest/developerguide/lambda-group-config.html

Thanks.

answered 5 years ago
0

Thanks for the help.

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions