miguelgrinberg/Flask-SocketIO-Chat

Commands

D4RKW1NT3R opened this issue · 3 comments

Is there a way to add a command to kick people? I have tinkered with this and made a /clear command but I also want /kick but I have no clue how to add /kick. Is there a way?

You can use the disconnect(sid) function to remove a client. Besides that, it depends on your application how you implement the /kick command.

Could you help me with making this? I can invite you to a repl.it I made and have you help me edit it to add the command. If you can thank you. The link is: https://repl.it/join/yeevqvav-jordandixon1

Sorry, my time is limited.