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

Use base URL instead of host and port options

momocow opened this issue · comments

用 base URL 讓SDK用戶自訂位址, 以更進一步支援例如反向代理的網路環境。

原先 URL 組成

ws://{host}:{port}/<event|api>[?access_token={token}]

變更為

ws://{baseUrl}/<event|api>[?access_token={token}]