Closing Connection to client from server LoadBalancing

Options
Hi, I just wanted to know if there is a way to close the clients connection. So when an admin bans the player they are disconnected from their current game. Since I am using custom auth, they won't be able to re-join but I need a server sided way of disconnecting them. Thanks

Comments

  • chvetsov
    Options
    Hi, @LeonPs

    if you are writing plugin you may call PluginHost.RemoveActor if not just call Peer.Disconnect

    best,
    ilya
  • LeonPS
    Options
    Hi, would that just be for kicking from the current room, or would it require the player to be authenticated again? Thanks
  • chvetsov
    Options
    this will kick the user, but he will be able to reconnect and pass authentication because he has token

    only after some time he will need to authentication again

    best,
    ilya
  • LeonPS
    Options
    Would there be a way of completely removing the player and de-validating the auth token?
  • chvetsov
    Options
    @LeonPS no, there is no such way.

    the only thing you may do is to add check into plugin that user may connect. I mean that during join you may check this

    best,
    ilya