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

Once listeners cannot be removed

momocow opened this issue · comments

因為註冊單次監聽器時, 使用一個 wrapper 包裝該監聽器後才呼叫 on() 進行註冊。
但若需要呼叫 off() 移除該監聽器, 因為沒有 wrapper 的參照, 故無法移除。