SessionOpenOptions
public struct SessionOpenOptions : OptionSet
Options that can modify behaviors of session open operation.
-
Declaration
Swift
public let rawValue: Int -
Declaration
Swift
public init(rawValue: Int) -
Default is
[.forced].Declaration
Swift
public static let `default`: SessionOpenOptions -
For two sessions of the same client (have valid tag and application-id, client-id, client-tag are same), the later one will force to make the previous one offline. After later one opened success, the previous one will get session-closed-error(code: 4111).
Declaration
Swift
public static let forced: IMClient.SessionOpenOptions -
Session open with this option means this opening is reconnect. if the session has been offline by other client, then open result is session-closed-error(code: 4111).
Declaration
Swift
public static let reconnect: IMClient.SessionOpenOptions
View on GitHub
Install in Dash
SessionOpenOptions Structure Reference