From b580c390132acb3ab6474584b88cb311a5358c56 Mon Sep 17 00:00:00 2001 From: Roman Baitaliuk Date: Thu, 13 Dec 2018 10:34:26 +0800 Subject: [PATCH] Added API for deleting single event --- ClusterWS-Client-Swift.podspec | 2 +- Sources/CWSEmitter.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ClusterWS-Client-Swift.podspec b/ClusterWS-Client-Swift.podspec index f948d31..130e9a9 100644 --- a/ClusterWS-Client-Swift.podspec +++ b/ClusterWS-Client-Swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ClusterWS-Client-Swift' - s.version = '3.1.1' + s.version = '3.1.2' s.summary = 'Swift Client for ClusterWS' s.description = 'Swift Client for ClusterWS - lightweight, fast and powerful framework for building horizontally & vertically scalable WebSocket applications in Node.js' s.homepage = 'https://github.com/ClusterWS/ClusterWS-Client-Swift' diff --git a/Sources/CWSEmitter.swift b/Sources/CWSEmitter.swift index 4628035..38c473a 100644 --- a/Sources/CWSEmitter.swift +++ b/Sources/CWSEmitter.swift @@ -10,6 +10,7 @@ import Foundation public typealias CompletionHandler = (Any) -> Void open class CWSEmitter { + private var mEvents: [(string: String, completion: CompletionHandler)] = [] public func on(event: String, completion: @escaping CompletionHandler) {