RealtimeConnectionOptions
供支持自定义请求头的 WebSocket 客户端使用的连接地址、协议与握手参数。
expiresAt
Section titled “expiresAt”expiresAt: string;handshakeTimeout
Section titled “handshakeTimeout”handshakeTimeout: number;Node ws 的握手时限;不会超过ticket剩余时效。
headers
Section titled “headers”headers: Record<string, string>;protocols
Section titled “protocols”protocols: ["tansr-realtime-v1", string];sessionId
Section titled “sessionId”sessionId: string;url: string;本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。