moscajs / mosca

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

the same client connect again. what will happen? #568

Closed soszrg closed 7 years ago

soszrg commented 7 years ago

When the client has connected, if the same client connect the server again, will disconnect the old first, or connect the new first? By the log, it is uncertain. How can I make the disconnection first?

mcollina commented 7 years ago

It should be that the broker disconnect the old one. The logic is written with that in mind. If this is not the case, please send an example to reproduce.