iOS SDK API Reference

Classes | Typedefs | Enumerations
SKWPeer.h File Reference
#import "SKWHeaders.h"

Go to the source code of this file.

Classes

class  SKWPeer
 A peer class. More...
 

Typedefs

typedef void(^ SKWPeerEventCallback) (NSObject *__nullable arg)
 Peer Event Callback signature.
 

Enumerations

enum  SKWPeerEventEnum {
  SKW_PEER_EVENT_OPEN, SKW_PEER_EVENT_CONNECTION, SKW_PEER_EVENT_CALL, SKW_PEER_EVENT_CLOSE,
  SKW_PEER_EVENT_DISCONNECTED, SKW_PEER_EVENT_ERROR, SKW_PEER_EVENT_AUTH_EXPIRES_IN
}
 Peer event type. More...
 

Enumeration Type Documentation

◆ SKWPeerEventEnum

Peer event type.

Enumerator
SKW_PEER_EVENT_OPEN 

Emitted when a connection to the PeerServer is established.

SKW_PEER_EVENT_CONNECTION 

Emitted when a new data connection is established from a remote peer.

SKW_PEER_EVENT_CALL 

Emitted when a remote peer attempts to call you.

SKW_PEER_EVENT_CLOSE 

Emitted when peer.destroy() is executed.

After this event, the connection to the signaling server, all mediaConnection and dataConnection will be disconnected and the user will be ejected from all Rooms.

SKW_PEER_EVENT_DISCONNECTED 

Emitted when the peer is disconnected from the signalling server, either manually or because the connection to the signalling server was lost.

Deprecated:
This enumerator is now deprecated.
SKW_PEER_EVENT_ERROR 

Errors on the peer are almost always fatal and will destroy the peer.