SocketIOClientConfiguration
public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection
An array-like type that holds SocketIOClientOptions
-
Type of element stored.
Declaration
Swift
public typealias Element = SocketIOClientOption -
Index type.
Declaration
Swift
public typealias Index = Array<SocketIOClientOption>.Index -
Iterator type.
Declaration
Swift
public typealias Iterator = Array<SocketIOClientOption>.Iterator -
SubSequence type.
Declaration
Swift
public typealias SubSequence = Array<SocketIOClientOption>.SubSequence
-
The start index of this collection.
Declaration
Swift
public var startIndex: Index -
The end index of this collection.
Declaration
Swift
public var endIndex: Index -
Whether this collection is empty.
Declaration
Swift
public var isEmpty: Bool -
The number of elements stored in this collection.
Declaration
Swift
public var count: Index.Stride -
The first element in this collection.
Declaration
Swift
public var first: Element?
-
Creates a new
SocketIOClientConfigurationfrom an array literal.Declaration
Swift
public init(arrayLiteral elements: Element...)Parameters
arrayLiteralThe elements.
-
Creates an iterator for this collection.
Declaration
Swift
public func makeIterator() -> IteratorReturn Value
An iterator over this collection.
-
Special method that inserts
elementinto the collection, replacing any other instances ofelement.Declaration
Swift
public mutating func insert(_ element: Element, replacing replace: Bool = true)Parameters
elementThe element to insert.
replacingWhether to replace any occurrences of element to the new item. Default is
true.
SocketIOClientConfiguration Structure Reference