AgoraIO / Signaling

18 stars 28 forks source link

How to block a user? #13

Open htrxuan opened 5 years ago

htrxuan commented 5 years ago

Hi,

How to block a user in channel? (one admin of channel, all others are user), so admin can block any bad users, could I do this with agora?

plutoless commented 5 years ago

you can implement your own logic to send a ban msg to any user who you want to block. And the user needs to handle this message and leave the channel. That's how it's typically done with our RTM/Signaling SDK.

htrxuan commented 5 years ago

no, I want to set an admin, so this guy can ban any user ? Could I do this?

plutoless commented 5 years ago

there's no admin concept in our RTM/Signaling SDK.

htrxuan commented 5 years ago

i know, but anyway to ban a user after they joined to a channel?

plutoless commented 5 years ago

seems to be the only way. you can also deploy your own service, and send restful request to check if a user is able to join a channel or not

htrxuan commented 5 years ago

no, it's not good idea. If I need to create, I will use other service for text chat instead of Agora Signaling.