simps / mqtt

🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
https://mqtt.simps.io
Apache License 2.0
358 stars 58 forks source link

Can this project be used for implementing an MQTT server? #57

Closed cayolblake closed 3 years ago

cayolblake commented 3 years ago

Hello,

Project advertises for being an MQTT client yet there's https://github.com/simps/mqtt/blob/master/examples/server.php

My question is, is it possible to use this project as an MQTT server?

sy-records commented 3 years ago

Of course you can.

MQTT is just a protocol, and this project just provides a protocol parser to convert binary data into human-readable data, an array of PHP.

You can work with Swoole or something else to implement MQTT Server.

cayolblake commented 3 years ago

Good to hear.

Does it implement MQTT over WebSockets ?

sy-records commented 3 years ago

yes