Client

  • This class provides methods to connect to and logout from the established session against the server.

    See more

    Declaration

    Swift

    public class Sessions
  • Entry point to create calls, listen to incoming calls and manage register/login. A reachable WAC and gateway is needed.

    See more

    Declaration

    Swift

    public class SippoClient
  • Represents errors related to SippoClient

    • forbidden: forbidden
    • notFound: Resource requested (Contact, Chat…) not exists
    • wrongCredential: Wrong credential provided
    • actionNotAllowed: Action not allowed due to user permissions
    • internalError: Server/Network errors

    Declaration

    Swift

    public enum ClientError : Error
  • System permission not granted like camera or microphone

    • notGranted: Permission not accepted as argument

    Declaration

    Swift

    public enum PermissionError : Error
  • Delegate that notifies changes on the stack

    See more

    Declaration

    Swift

    public protocol SessionDelegate : AnyObject
  • Define errors for resource actions

    • resourceNotFound: resource doesn´t exist
    • forbidden: forbidden
    • internalError: an internal error ocurred
    • notAllowed: user is not allowed to perform this action on the resource
    • invalidResource: resource is not valid
    • timeout: timeout

    Declaration

    Swift

    public enum ResourceError : Error
  • Represent current sippo server session state

    • new: Session has been created but not connected
    • connected: Session has been authenticated
    • disconnected: Session has been disconected
    • resume: Session has been resumed, this state is only reachable from suspend state
    • resuming: Session starts resume
    • suspend: Session has been suspendend, usually called when app goes to background
    • suspending: Session starts suspend
    • error: Error during first authentication

    Declaration

    Swift

    public enum SippoServerState
  • Stack state

    • new: Initial state.
    • connected: Session has connected with the server.
    • disconnected: Session has been disconnected.
    • error: Error during first authentication
    See more

    Declaration

    Swift

    public enum StackState : String