                 "token": ["apn": deviceToken],
                 "appName": Bundle.main.bundleIdentifier ?? "main",
                 "metadata": [:]
-            ]]
-        ] as [String: Any]
+                ]]
+            ] as [String: Any]
 
         SocketManager.send(request)
     }

    }

    func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
        PushManager.handleNotification(raw: response.notification.request.content.userInfo)
    }
}

        let notificationCenter = UNUserNotificationCenter.current()
        notificationCenter.delegate = PushManager.delegate
        notificationCenter.requestAuthorization(options: [.alert, .sound, .badge]) { (_, _) in }
        notificationCenter.setNotificationCategories([.message, .messageNoReply])
    }

    @discardableResult
    static func handleNotification(raw: [AnyHashable: Any], reply: String? = nil) -> Bool {
        guard let notification = PushNotification(raw: raw) else { return false }
        return handleNotification(notification, reply: reply)
    }

    fileprivate static func hostToServerUrl(_ host: String) -> String? {
