[proton-c] Seeking feedback on an updated emscripten build
Hi folks. Recently I had a need for an emscripten build of proton-c and the
existing implementation was a little dusty, so I made a small update for my
needs over at github . In particular it was based on some MIT licensed
work by Andre Weissflog also at github here  and here , but updated
to work with 'latest' emscripten rather than 'incoming' which you need to
clone and build.
It's been tested mainly on Fedora 25, with some basic testing OS X 10.11.3,
and while I've also run it on Windows and emscripten gets installed in both
cygwin and regular command line environments there's almost certainly work
left to do on Windows in particular.
If you clone  you should be able to do something like:
proton-c, not including the c++ binding. You should be able to test via:
From one shell:
node recv-async.js amqp://127.0.0.1:5673/q0
and from another
node send-async.js -a amqp://127.0.0.1:5673/q0 'Message1'
and see something like:
[rkieley@i5t450s messenger]$ PN_TRACE_FRM=1 node recv-async.js amqp://
exit(0) implicitly called by end of main(), but noExitRuntime, so not
exiting the runtime (you can use emscripten_force_exit, if you want to
force a true shutdown)
Subject: (no subject)
Note that PN_TRACE_FRM=1 doesn't work for me so any ideas there are
Testing utilizes the Qpid Dispatch router with a listener configured with
http: true. I've tested against Dispatch master recently, utilizing
libwebsockets 2.2.0 I think.
I don't quite have a full demo to share unfortunately, however, I do have a
project at  that'll run up the send-async and recv-async in the browser
as per .
I also have been using it to receive data from the HVAC system in my house
which runs a BACnet protocol over a RS-458 serial link which I've connected
to a Raspberry PI for which you can see the original protocol buffer
payload version here  and the straight string version here .
Not sure how much use this is in general given the problematic debugging
environment that this presents. However the same CMAKE_TOOLCHAIN_FILE
method can also be used to build for iOS which I've done recently and in
theory the Android NDK which I have not yet done.
Either way comments and feedback appreciated at this point.