fix: 提高兼容性

This commit is contained in:
手瓜一十雪
2024-08-20 20:26:49 +08:00
parent fdc1ef7e9a
commit 16769c7838
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}`,