Getting full external address for various services of MyChat Server.

 

Syntax

function mGetServerExternalAddress(iType: integer): string;

 

Parameters and return values

Parameter

Type

Value

iType

integer

address that you need to get. Possible variants:

0 — MyChat WEB server address.

 

Function result

Text string. If you specify a nonexistent number, the function returns an empty string.

 

Example

begin
  mLogScript(mGetServerExternalAddress(0), 'WEB server');
end.

Script work result

[20:12:02] (Log "GetAddress"): [WEB server] https://mychat-server.com

[20:12:02] (Run "GetAddress"): Script operation time: 3 ms

[20:12:02] (Run "GetAddress"): Script done successfully.

 

See also

mLogScript