Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkServer.DisconnectAll

Switch to Manual
public static function DisconnectAll(): void;

Description

Disconnect all currently connected clients.

This can only be called on the server. Clients will receive the SYSTEM_DISCONNECT message.

no example available in JavaScript