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 年前檢視次數 511 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南