Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

HostTopology.AddSpecialConnectionConfig

Switch to Manual
public function AddSpecialConnectionConfig(config: Networking.ConnectionConfig): int;

Parameters

config Connection config for special connection.

Returns

int Id of this connection, user should use this id when he calls NetworkTransport.Connect.

Description

Add special connection to topology (for example if you need to keep connection to standalone chat server you will need to use this function). Returned id should be use as one of parameters (with ip and port) to establish connection to this server.