Any feedback after being kicked?

Options
What's the callback to handle being kicked? It's a bit awkward to just shoot them to the lobby and OnLeftRoom has no reason for the leave, so I'm finding it a bit difficult to catch that it was a "kick" rather than something else~

What's the best way to handle this in best practice?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited June 2018
    Options
    Hi @xblade724,

    There is no callback for the kick.
    The kick is just a fake disconnect request.
    In my opinion, you can send a custom event before the kick to inform the client that he's being kicked or you can modify PUN's code when receiving the disconnect request.