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年前506ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ