SocketStatus

public enum SocketStatus

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.
  • The socket is just created but never connects.

    Declaration

    Swift

    case invalid,
  • The socket is connecting.

    Declaration

    Swift

    connecting,
  • The connection is established.

    Declaration

    Swift

    established,
  • The socket is disconnecting.

    Declaration

    Swift

    disconnecting,
  • The socket is closed.

    Declaration

    Swift

    closed