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 for the help.
com.aws.greengrass.mqttclient.AwsIotMqttClient: Unable to connect to AWS IoT CoreAccepted Answerasked 10 months ago
AWS IoT Core takes too long to update the connectivity information of a deviceasked 10 months ago
IoT Core Lambda sequential eventasked 2 months ago
Can Greengrass use a Lambda in the Core if needed?asked a year ago
Does greengrass support lamda in python 3 ?
How to have a websocket connection to lambda in a green grass core
Slow on using tensorflow in lambda after greengrass deploymentasked 3 years ago
Invoking a lambda function from core deviceasked 2 years ago
Urgent help Please !! New to Greengrass and have a few important queries
New to Greengrass and have a few general queries related to it.