Skip to content

KBE3D / KBCore / Cesium / TrustedServers / add

函数: add()

add(host: string, port: number): void

Adds a trusted server to the registry

参数

host

string

The host to be added.

port

number

The port used to access the host.

返回

void

示例

ts
// Add a trusted server
TrustedServers.add('my.server.com', 80);

KBE3D @3.0.0 Copyright © 2024-present KBE3D