How to use client.disconnect()

I am trying to make a multiplayer game but I want to have the ability to disconnect people, I read the documentation and networking has a disconnect feature but I don't understand if I need to call that in the server or if the clients themselves have to call it or what I canis supposed to pass into the function if anyone has more information about disconnecting people it would be very helpful