UNPKG

kucoin-universal-sdk

Version:
48 lines (47 loc) 1.29 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetPrivateTokenInstanceServers implements Serializable { /** * Websocket domain URL. It is recommended to use a dynamic URL, as the URL may change. */ endpoint: string; /** * Whether to encrypt. Currently only supports wss, not ws */ encrypt: boolean; /** * Network Protocol */ protocol: GetPrivateTokenInstanceServers.ProtocolEnum; /** * Recommended ping interval (milliseconds) */ pingInterval: number; /** * Heartbeat timeout (milliseconds) */ pingTimeout: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetPrivateTokenInstanceServers; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetPrivateTokenInstanceServers; } export declare namespace GetPrivateTokenInstanceServers { enum ProtocolEnum { /** * Websocket */ WEBSOCKET } }