mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: reverse ws support koishi
This commit is contained in:
@@ -81,7 +81,8 @@ export class ReverseWebsocket {
|
||||
perMessageDeflate: false,
|
||||
headers: {
|
||||
'X-Self-ID': selfInfo.uin,
|
||||
'Authorization': `Bearer ${token}`
|
||||
'Authorization': `Bearer ${token}`,
|
||||
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
|
||||
}
|
||||
});
|
||||
registerWsEventSender(this.websocket);
|
||||
|
Reference in New Issue
Block a user