project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.64k stars 346 forks source link

`ws` `singleMode:true` 连接上5秒钟会断开, `singleMode: false`则不会 #746

Open sxd1140 opened 9 months ago

sxd1140 commented 9 months ago

2.9.1

adapters:
  - http
  - ws
debug: true
enableVerify: false
singleMode: true
cacheSize: 4096
adapterSettings:
  http:
    host: 0.0.0.0
    port: 8888
    cors: ["*"]
  ws:
    host: 0.0.0.0
    port: 9999

在断开之前发送消息也正常. 收到

{"syncId": "", "data": {"code": 0, "session": "SINGLE_SESSION"}}

后5秒钟断开连接.