Does the embedded MQTT broker support websockets?

Hi everyone

I’m trying to use a websockets based MQTT client, specifically the Paho JavaScript client.

I’m finding the client can’t connect to the broker; I’m getting the following response:

WebSocket connection to 'ws://' failed: Connection closed before receiving a handshake response

The log reports:

[ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=null
java.lang.NullPointerException: null

Before I dig in to try and find out what the issue is, I thought I’d first check that the embedded broker actually supports websockets MQTT sessions!


The moquette broker itself supports websockets, but the openHAB service does not enable it.

Thanks David, that explains it!

I removed the embedded broker and switched to a Mosquitto installation on the same machine; that got it all working.