         }
     }
     
-    @nonobjc open func socket(_ sock: GCDAsyncSocket, didReceiveTrust trust: SecTrust, completionHandler: ((Bool) -> Void)) {
+    public func socket(_ sock: GCDAsyncSocket, didReceive trust: SecTrust, completionHandler: @escaping (Bool) -> Swift.Void) {
         #if DEBUG
             NSLog("CocoaMQTT: didReceiveTrust")
         #endif
         completionHandler(true)
     }
     
-    open func socketDidSecure(_ sock: GCDAsyncSocket) {
+    public func socketDidSecure(_ sock: GCDAsyncSocket) {
         #if DEBUG
             NSLog("CocoaMQTT: socketDidSecure")
         #endif
         sendConnectFrame()
     }
 
-    open func socket(_ sock: GCDAsyncSocket, didWriteDataWithTag tag: Int) {
+    public func socket(_ sock: GCDAsyncSocket, didWriteDataWithTag tag: Int) {
         #if DEBUG
         NSLog("CocoaMQTT: Socket write message with tag: \(tag)")
         #endif
     }
     
-    @nonobjc open func socket(_ sock: GCDAsyncSocket, didReadData data: Data, withTag tag: Int) {
+    public func socket(_ sock: GCDAsyncSocket, didRead data: Data, withTag tag: Int) {
         let etag: CocoaMQTTReadTag = CocoaMQTTReadTag(rawValue: tag)!
         var bytes = [UInt8]([0])
         switch etag {


    func mqttDidReceivePong(_ mqtt: CocoaMQTT)

    func mqttDidDisconnect(_ mqtt: CocoaMQTT, withError err: NSError?)

}


    }

    //AsyncSocket Delegate
    
    public func socket(_ sock: GCDAsyncSocket, didConnectToHost host: String, port: UInt16) {
        #if DEBUG
            NSLog("CocoaMQTT: connected to \(host) : \(port)")
        #endif
