Connecting with AWS IoT Core Using WebSocket Protocol

I'm trying to connect to AWS IoT Core using MQTT, WebSocket and HTTPS communication protocols.

Here I'm using Node-Red as an IoT Device simulator. While doing this I'm able to successfully connect using both MQTT and HTTPS protocol but WebSocket connection is not working.

MQTT EndPoint:

HTTPS EndPoint:

WebSocket EndPoint: wss://

Error in Node-Red Console when I try to publish a message to AWS IoT Core using WebSocket protocol

"An error occurred while sending: Error: WebSocket is not open: readyState 3 (CLOSED)"

The above error clearly states that Node-Red is not able to establish the WebSocket connection due to incorrect configuration.

Can anyone who has connected to AWS IoT Core using WebSocket protocol share some pointers here?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.