Closed btsimonh closed 7 years ago
ok, all done on this one I think.
can you rebase? this is conflicting with your other PR?
yep, will try to clean up. Was a bit of a job to merge because the code moves existing code, confusing the auto-merge; but maybe I can fool it.
I'll just make a new PR from my existing 'btsimonh-dev', where I already merged both in. Tested merge from there on Sourcetree, and all was automagic...
Add option 'qos2Puback' - if set to true, will modify published qos 2 messages to qos 1 before processing. This results in the messages getting a puback, which fools mqtt.js into not getting stuck when sending qos 2 to mosca. It's an option because the spec does not allow for this? Probably will not suit all clients, but better than mqtt.js dying; a patch over the issue until mosca can get true QOS-2 or QOS-2 pseudo-processing.