feat: add ua to reverse websocket headers

This commit is contained in:
Bluefissure 2024-06-06 08:48:18 +00:00
parent f150ae478b
commit b658d164f9

View File

@ -85,6 +85,7 @@ export class ReverseWebsocket {
'X-Self-ID': selfInfo.uin,
Authorization: `Bearer ${token}`,
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
'User-Agent': 'LLOneBot',
},
})
registerWsEventSender(this.websocket)