momocow / node-cq-websocket

A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.

Home Page:https://cq-websocket.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HelpWanted

undefined-moe opened this issue · comments

想在网页中使用通知,需要https连接,此时无法使用websocket协议
能否改用wss://进行传输?

啊, 確實協議目前無法自訂變更, 會在下個版本加入更彈性的方式指定遠端酷Q。

謝謝回報~

🎉 This issue has been resolved in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@masnn 可以參考測試代碼的寫法, 使用 protocol host port 這幾個選項指定遠端 CQHTTP 的 ws 服務器, 或是直接將 wss: 寫進 baseUrl 選項中。