Can a web browser use MQTT?

2020-02-07 16:49发布

We are looking at using MQTT as the messaging protocol on a new device we're building. We'd also like a web interface for the device. Does anyone know if you can implement a browser client app (without additional plugins) that talks MQTT?

标签: mqtt
8条回答
何必那么认真
2楼-- · 2020-02-07 17:25

Why not nodejs + socket.io? They come with all gadgets included (webscokets, pub/sub, webserver,mqtt broker...). SocketCluster is another good starting point.

查看更多
▲ chillily
3楼-- · 2020-02-07 17:30

We've had good experience using WSS, the WebSocket to TCP Gateway (for MQTT). It means running a separate process, but that does avoid having to change Apache's configuration. WSS also has support for TLS.

查看更多
登录 后发表回答