Help Center/ Meeting/ Client SDK Reference/ Web SDK/ APIs/ Basic Settings/ Configuring the Server Address
Updated on 2025-04-18 GMT+08:00

Configuring the Server Address

API Description

This API is used to configure the address of Huawei Cloud Meeting to be connected. You can connect to the proxy address if a proxy is used.

The HTTPS and WebSocket Secure protocols are used for SDK connection.

Method Definition

1
setServerConfig(params):void

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

params

Yes

object

For details, see Table 2.

Table 2 Description of the config object

Key

Type

Description

host

string

Server host.

port

string

Server port number.

If the meeting server address is not configure, the Chinese mainland site is used by default.

Chinese mainland site: host: 'meeting.huaweicloud.com', port: '443'

International site: host: 'intl.meeting.huaweicloud.com', port:'443'

Return Values

None

Sample Code
try {
  HWMeeting.setServerConfig({
     "host": "meeting.huaweicloud.com",
     "port": "443"
 });
} catch (e) {
  // Display the result.
  console.error(e);
}