I’m currently trying to perform a super hacky operation, consisting of the following step in a Node.JS script:
- stop the default snips ASR service
- start the node script, that listens on the default Snips MQTT and we start a partial MQTT server using https://www.npmjs.com/package/mqtt-connection on port 1884
- then we start a snips-asr process using spawn child_process in Node, we connect it to our own Node MQTT server (not localhost:1883, but localhost:1884)
- we act as a bridge between the snips MQTT and our own MQTT server/ASR process
Now the problem seems to be with connecting to my own MQTT server, because connecting the child process to localhost:1883 seems to be working fine.
All code and the output can be found here: https://gist.github.com/svenvdvoort/f4c69af899b9d061c238635610041b70 (the code is not yet complete)
I really hope that someone could take a look at my code, because I don’t really have a clue how to debug this situation.
Thanks in advance!