                     update()
             },
                 onError: {_ in
-                     VK.Log.put("LongPool", "Error get server with \(req)")
+                     VK.Log.put("LongPoll", "Error get server with \(req)")
                     Thread.sleep(forTimeInterval: 10)
                     getServer()
             }


        if connected == false {
            connected = true
             VK.Log.put("LongPool", "Connection restored")
            NotificationCenter.default.post(name: VK.LP.notifications.connectinDidRestore, object: nil)
        }
    }


    deinit {
         VK.Log.put("LongPool", "Deinit observer")
    }
}




private var lpQueue = DispatchQueue(label: "VKLongPollQueue")



private typealias VKLongPoll = VK
extension VKLongPoll {
    /**
     Long pool client. More - https://vk.com/dev/using_longpoll
     * To start and stop the server, use the start() and stop() functions
