terrorsl / sMQTTBroker

Simple MQTT broker
MIT License
70 stars 19 forks source link

terminate client ?? #20

Closed DONGILBAE closed 2 years ago

DONGILBAE commented 2 years ago

Hello... I am new one. It is not a issues.. Just only want to know. I want to terminate client when client has wrong id or password. how can i do? on broker

terrorsl commented 2 years ago

Hello, look advance example, function onEvent. New client send login and password, you check it and if it bad return false. Broker drop client automatically.

DONGILBAE commented 2 years ago

I see.. thanks a lot..

terrorsl commented 2 years ago

Client must have unique name. If one connect and other have same name it will drop