             print("Error while send message")
         }
     }
-    
+
     fileprivate func sendRaw(_ message: String) {
         socket.readyState == SRReadyState.OPEN ? socket.send(message) : queue.append(message)
     }
-    
+
     public func isConnected() -> Bool {
         return socket.readyState == SRReadyState.OPEN
     }
-    
+
     deinit {
         self.socket.close()
         self.socket.delegate = nil

            id: nil,
            type: MessageTypes.GQL_CONNECTION_TERMINATE.rawValue
        )
        self.sendMessage(unserializedMessage)
    }
    
    private func verbosePrint(_ message: String) {
        if verbose {
            print(message)
        }
    }
    
    private func sendMessage(_ message: OperationMessage) {
        if let final = message.toJSON() {
            sendRaw(final)

            id: identifier,
            type: MessageTypes.GQL_STOP.rawValue
        )
        sendMessage(unserializedMessage)
    }

    public func closeConnection() {
        reconnect = false
        let unserializedMessage = OperationMessage(
