ClientNodeBeginConnect Method |
Begins an asynchronous connection to the specified server using WebSocket and UDP ports.
Namespace: NeoAxis.NetworkingAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic bool BeginConnect(
bool https,
string host,
int portWebSocket,
int portUdp,
string clientVersion,
string loginData,
out string error
)
Parameters
- https Boolean
- true to use HTTPS for the connection; otherwise, false.
- host String
- The hostname or IP address of the server to connect to. Cannot be null or empty.
- portWebSocket Int32
- The port number to use for the WebSocket connection. Must be a valid port number or 0.
- portUdp Int32
- The port number to use for the UDP connection. Must be a valid port number or 0.
- clientVersion String
- The version string identifying the client. Used for compatibility checks with the server.
- loginData String
- The login data or credentials to send to the server during connection initialization.
- error String
- When this method returns, contains an error message if the connection could not be started; otherwise, null.
Return Value
Booleantrue if the connection process was successfully started; otherwise, false.
See Also