SocketIOClientConfiguration

public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection

An array-like type that holds SocketIOClientOptions

Typealiases

Properties

  • The start index of this collection.

    Declaration

    Swift

    public var startIndex: Index { get }
  • The end index of this collection.

    Declaration

    Swift

    public var endIndex: Index { get }
  • Whether this collection is empty.

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • The number of elements stored in this collection.

    Declaration

    Swift

    public var count: Index.Stride { get }
  • The first element in this collection.

    Declaration

    Swift

    public var first: Element? { get }
  • Declaration

    Swift

    public subscript(position: Index) -> Element { get set }
  • Declaration

    Swift

    public subscript(bounds: Range<Index>) -> SubSequence { get set }

Initializers

  • Creates a new SocketIOClientConfiguration from an array literal.

    Declaration

    Swift

    public init(arrayLiteral elements: Element...)

    Parameters

    arrayLiteral

    The elements.

Methods

  • 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.