moscajs / mosca

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

Read the Message That a Client has sent #514

Closed pirakleous closed 8 years ago

pirakleous commented 8 years ago

Hello is there any way to read the message that a client has sent (published) to a topic from broker? In published function or an other function?

Thank you

mcollina commented 8 years ago

You should override https://github.com/mcollina/mosca/blob/master/lib/server.js#L416