Hi there,
I'd like to share a websocket to TCP gateway I made some weeks ago.
It was developed to forward MQTT messages from a web application that uses mosquitto.js to the broker.
For each incoming websocket connection it establishes a new TCP connection to the destination. That makes each web app user appear as a new client to the broker.
It is a lightweight alternative to mod_websocket which requires the installation of lighttpd.
It uses boost::asio and runs on just a single thread which makes it suitable for low performance devices like the raspberry pi.
The source code and binaries for x86 and armhf are available at https://github.com/stylpen/WSS
Please feel free to comment and share your ideas.
Regards,
Stephan
--
--
To learn more about MQTT please visit http://mqtt.org
To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+uns...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mqtt
Hiram Chirino
Engineering | Red Hat, Inc.
hchi...@redhat.com | fusesource.com | redhat.com
skype: hiramchirino | twitter: @hiramchirino
blog: Hiram Chirino's Bit Mojo
Is there a JS client that can use MQTT in the browser via web sockets?
--
--
To learn more about MQTT please visit http://mqtt.org
To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+uns...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mqtt
Hiram,
Good point! It's the three clause BSD, same as the rest of mosquitto.
Cheers,
Roger
I will update that...*adds to increasingly-long mqtt.org todo list*I was going to chip in and note that the mosquitto community (well, Roger *grin*) and the Paho team are keen to work together on things like websockets so that we have an agreed way forward on it, so it's a good idea to refer to
http://wiki.eclipse.org/Paho/Paho_Websockets... as the basis for any work around MQTT and Websockets. Discussion welcome too, of course!
Hi Stephan:I would like to switch from mod_websocket and use your gateway.I have built websocketpp following this link: https://github.com/zaphoyd/websocketpp/wiki/Build-on-debianWhen I tried to build your gateway I ran into error.Here are the last two lines of output:WSS.cpp: ... : undefined reference to `websocketpp::processor::hybi_header::reset()'collect2: error: ld returned 1 exit statusCould you please give me some hint what to do next? I would really appreciate it
On Friday, January 25, 2013 2:02:24 PM UTC-8, Stephan Wypler wrote:Hi there,
I'd like to share a websocket to TCP gateway I made some weeks ago.
It was developed to forward MQTT messages from a web application that uses mosquitto.js to the broker.
For each incoming websocket connection it establishes a new TCP connection to the destination. That makes each web app user appear as a new client to the broker.
It is a lightweight alternative to mod_websocket which requires the installation of lighttpd.
It uses boost::asio and runs on just a single thread which makes it suitable for low performance devices like the raspberry pi.
The source code and binaries for x86 and armhf are available at https://github.com/stylpen/WSS
Please feel free to comment and share your ideas.
Regards,
Stephan
--To learn more about MQTT please visit http://mqtt.org
---To post to this group, send email to mq...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "MQ Telemetry Transport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
Visit this group at http://groups.google.com/group/mqtt.