Inherits from NSObject
Declared in RespokeDirectConnection.h

Tasks

Other Methods

private Methods

Properties

delegate

@property (weak) id<RespokeDirectConnectionDelegate> delegate
Discussion

The delegate that should receive notifications from the RespokeDirectConnection protocol

Declared In

RespokeDirectConnection.h

Instance Methods

accept

- (void)accept
Discussion

Accept the direct connection and start the process of obtaining media.

Declared In

RespokeDirectConnection.h

createDataChannel

- (void)createDataChannel
Discussion

Establish a new direct connection instance with the peer connection for the call

Declared In

RespokeDirectConnection+private.h

getCall

- (RespokeCall *)getCall
Discussion

Get the call object associated with this direct connection

Declared In

RespokeDirectConnection.h

initWithCall:

- (instancetype)initWithCall:(RespokeCall *)call
Discussion

Initialize a new direct connection instance

Parameters

call

The call implementing the direct connection

Return Value

The newly initialized instance

Declared In

RespokeDirectConnection+private.h

isActive

- (BOOL)isActive
Discussion

Indicate whether a datachannel is being setup or is in progress.

Declared In

RespokeDirectConnection.h

peerConnectionDidOpenDataChannel:

- (void)peerConnectionDidOpenDataChannel:(RTCDataChannel *)dataChannel
Discussion

Notify the direct connection instance that the peer connection has opened the specified data channel

Parameters

dataChannel

The dataChannel that has opened

Declared In

RespokeDirectConnection+private.h

sendMessage:successHandler:errorHandler:

- (void)sendMessage:(NSString *)message successHandler:(void ( ^ ) ( void ))successHandler errorHandler:(void ( ^ ) ( NSString *))errorHandler
Discussion

Send a message to the remote client through the direct connection.

Declared In

RespokeDirectConnection.h