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

已提问 5 年前480 查看次数
2 回答
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.

已回答 5 年前
0

Thanks for the help.

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则