-
Notifications
You must be signed in to change notification settings - Fork 26
Setup Client
Alexey Bukhtin edited this page Feb 12, 2020
·
10 revisions
Client.config = .init(apiKey: "<#ApiKey#>", appId: "<#AppId#>")
// Setup a Stream user, when your user was logged in.
Client.shared.setupUser(token: token) { _ in
// Do all your requests from here. Reload feeds and etc.
}Client.config = .init(apiKey: "<#ApiKey#>",
appId: "<#AppId#>",
baseURL: BaseURL(location: .singapore),
callbackQueue: .main,
logsEnabled: true)