GatewayWithShard

data class GatewayWithShard(val url: String, val shards: Int, val sessionStartLimit: SessionStartLimit) : GatewayInfo

[https://bot.q.qq.com/wiki/develop/api/openapi/wss/shard_url_get.html#%E8%BF%94%E5%9B%9E] 一个用于连接 websocket 的地址。同时返回建议的分片数,以及目前连接数使用情况。

Constructors

Link copied to clipboard
fun GatewayWithShard(url: String, shards: Int, sessionStartLimit: SessionStartLimit)

Properties

Link copied to clipboard
Link copied to clipboard
val shards: Int
Link copied to clipboard
open override val url: String