             sendRaw(serializedMessage)
         }
     }
-    
+
     fileprivate func reconnectInit() {
         let unserializedMessage = InitOperationMessage(
             payload: params,

            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)

        sendRaw(queue[0])
        queue.remove(at: 0)
    }

    public func webSocket(_: SRWebSocket!, didCloseWithCode _: Int, reason _: String!, wasClean _: Bool) {
        if reconnect {
            socket.open()
        }
    }

    public func webSocket(_: SRWebSocket!, didReceiveMessage message: Any!) {
        serverMessageHandler(String(describing: message!))
    }
