Interface HttpAdapter

提供基于轮询的 http 接口

interface HttpAdapter {
    cors?: string[];
    host: string;
    port: number;
}

Properties

Properties

cors?: string[]

配置跨域, * 默认允许来自所有域名

host: string

http server 监听的本地地址 一般为 localhost 即可, 如果多网卡等情况,自定设置

Default

"localhost"
port: number

http server 监听的端口 与 websocket server 可以重复, 由于协议与路径不同, 不会产生冲突

Default

4859

Generated using TypeDoc