useAlternateWebSocketImplementation property

bool useAlternateWebSocketImplementation
getter/setter pair

Alternate websocket implementation.

The Amazon Web Services (AWS) IOT MQTT interface(and maybe others) has a bug that causes it not to connect if unexpected message headers are present in the initial GET message during the handshake. Since the httpclient classes insist on adding those headers, an alternate method is used to perform the handshake. After the handshake everything goes back to the normal websocket class. Only use this websocket implementation if you know it is needed by your broker.

Implementation

bool useAlternateWebSocketImplementation = false;