fix: 提高兼容性

This commit is contained in:
手瓜一十雪
2024-08-20 20:26:49 +08:00
parent e84e22e7b5
commit d91d03a8f3
5 changed files with 19 additions and 1 deletions

View File

@@ -71,6 +71,8 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter {
this.connection = new WebSocket(this.url, {
maxPayload: 1024 * 1024 * 1024,
handshakeTimeout: 2000,
perMessageDeflate: false,
headers: {
'X-Self-ID': this.coreContext.selfInfo.uin,
'Authorization': `Bearer ${this.token}`,