RosterManager.swift 441 B

123456789101112131415161718192021
  1. //
  2. // RosterManager.swift
  3. // Chat (iOS)
  4. //
  5. // Created by Sergey Tarasov on 17.08.2022.
  6. //
  7. import Foundation
  8. import XMPPFramework
  9. import XMPPFrameworkSwift
  10. class RosterManager {
  11. var roster: XMPPRoster
  12. var storage: XMPPRosterMemoryStorage
  13. init() {
  14. self.storage = XMPPRosterMemoryStorage()
  15. self.roster = XMPPRoster(rosterStorage: self.storage)
  16. self.roster.activate(StreamManager.shared.stream)
  17. }
  18. }