GatewayWithShard
class GatewayWithShard @ApiModelConstructor constructor(val url: String, val shards: Int, val sessionStartLimit: SessionStartLimit) : GatewayInfo(source)
一个用于连接 websocket 的地址。同时返回建议的分片数,以及目前连接数使用情况。 GatewayApis.Shared 的响应体。
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun copy(url: String = this.url, shards: Int = this.shards, sessionStartLimit: SessionStartLimit = this.sessionStartLimit): GatewayWithShard