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.Listen

Switch to Manual
public static function Listen(serverPort: int): bool;

Parameters

serverPort Listen port number.

Returns

bool True is listen succeeded.

Description

Start the server on the given port number. Note that if a UMatch has been created, this will list using the relay server in the UMatch.

no example available in JavaScript