unsubscribeBinary static method
取消由 subscribeBinary 注册的二进制事件监听。
Implementation
static void unsubscribeBinary(BinarySubscriptionToken token) {
final inst = _shared;
if (inst == null) return;
final list = inst._binaryEventHandlers[token.eventName];
if (list == null) return;
list.remove(token.handler);
if (list.isEmpty) {
inst._binaryEventHandlers.remove(token.eventName);
}
}