Socket

  • Protocol for socket with various functions.

    Any concrete implementation does not need to be thread-safe.

    See more

    Declaration

    Swift

    public protocol SocketProtocol: class
  • The delegate protocol to handle the events from a socket.

    See more

    Declaration

    Swift

    public protocol SocketDelegate : class
  • The current connection status of the socket.

    • Invalid: The socket is just created but never connects.
    • Connecting: The socket is connecting.
    • Established: The connection is established.
    • Disconnecting: The socket is disconnecting.
    • Closed: The socket is closed.
    See more

    Declaration

    Swift

    public enum SocketStatus