SocketIOClientConfiguration

public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection

An array-like type that holds SocketIOClientOptions

  • 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?
  • Declaration

    Swift

    public subscript(position: Index) -> Element
  • Declaration

    Swift

    public subscript(bounds: Range<Index>) -> SubSequence
  • Creates a new SocketIOClientConfiguration from an array literal.

    Declaration

    Swift

    public init(arrayLiteral elements: Element...)

    Parameters

    arrayLiteral

    The elements.

  • Creates an iterator for this collection.

    Declaration

    Swift

    public func makeIterator() -> Iterator

    Return Value

    An iterator over this collection.

  • Declaration

    Swift

    public func index(after i: Index) -> Index

    Return Value

    The index after index.

  • Special method that inserts element into the collection, replacing any other instances of element.

    Declaration

    Swift

    public mutating func insert(_ element: Element, replacing replace: Bool = true)

    Parameters

    element

    The element to insert.

    replacing

    Whether to replace any occurrences of element to the new item. Default is true.