moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 509 forks source link

Support publish to specified clients #345

Closed xiulunlin closed 9 years ago

xiulunlin commented 9 years ago

As mentioned in issue#214. It may be out of concept but would be very handy in many use cases.

I try to use internal forward method https://github.com/mcollina/mosca/blob/master/lib/client.js#L199, but I don't know how to handle those options, arguments and things like messageId properly in order not to cause side effects.

mcollina commented 9 years ago

The changes needed to support this will be quite complex, mainly for keeping the offline support working.

This would probably be in aedes, and at some point Mosca will run on its top.