We are excited to announce that wolfMQTT now fully supports MQTT over WebSockets, including both standard WebSockets and secure WebSockets (WSS). Read more about websockets here. This significant enhancement allows wolfMQTT clients to connect to MQTT brokers through WebSocket endpoints, expanding the versatility of our lightweight MQTT client implementation.
Why Websockets Matter for MQTT
WebSockets provide several advantages for MQTT deployments:
- Firewall Traversal: WebSockets operate over HTTP ports (80 and 443), which are typically open in most network environments, allowing MQTT traffic to pass through firewalls that might block traditional MQTT ports.
- Web Integration: WebSockets enable seamless integration between web applications and MQTT, making it easier to build web-based IoT dashboards and control interfaces.
- Proxy Compatibility: WebSockets can work through HTTP proxies, extending the reach of MQTT in corporate environments.
- Enhanced Security: Secure WebSockets (WSS) leverage TLS encryption, providing the same level of security as MQTT over TLS.
The WebSocket implementation has been tested with popular MQTT brokers including:
- Mosquitto
- HiveMQ
- VerneMQ
The addition of WebSocket support to wolfMQTT enhances its versatility and makes it even more suitable for a wide range of IoT applications, especially those that need to operate in restricted network environments or integrate with web applications.
This feature is available now in the latest version of wolfMQTT. We encourage our users to try it out and provide feedback. As always, we’re committed to maintaining the lightweight, secure, and efficient nature of our MQTT client implementation while expanding its capabilities.
For more information, visit our [GitHub repository].
If you have questions about any of the above, please contact us at facts@wolfSSL.com or call us at +1 425 245 8247.
Download wolfSSL Now