Selects a client by the given ID parameter.

It takes one integer parameter, which is the ID of the peer you want to select.


All clients are guaranteed to have a unique ID, from 0 to 65,534 inclusive, with -1 is used for invalid ID.

  • In Relay Server, names can be shared among clients, so it is preferred to use ID selection.
  • In Blue Server, names are always unique, and cannot be similar either.


An ID selection is also faster than a name selection in both Relay and Blue; read why here.


You cannot re-select the disconnecting client in a Connection > On disconnect event, so you should not switch away if possible.