Inherits from NSObject
Declared in RespokeConnection.h

Overview

Represents remote Connections which belong to an Endpoint. An Endpoint can be authenticated from multiple devices, browsers, or tabs. Each of these separate authentications is a Connection. The client can interact with connections by calling them or sending them messages.

Tasks

Other Methods

private Methods

Properties

connectionID

@property (readonly) NSString *connectionID
Discussion

The ID of this connection

Declared In

RespokeConnection.h

Instance Methods

getEndpoint

- (RespokeEndpoint *)getEndpoint
Discussion

Get the Endpoint that this Connection belongs to.

Return Value

The endpoint

Declared In

RespokeConnection.h

getPresence

- (NSObject *)getPresence
Discussion

Get the current presence of this connection

Return Value

The current presence value

Declared In

RespokeConnection.h

initWithSignalingChannel:connectionID:endpoint:

- (instancetype)initWithSignalingChannel:(RespokeSignalingChannel *)channel connectionID:(NSString *)connectionID endpoint:(RespokeEndpoint *)endpoint
Discussion

Initialize a new connection instance

Parameters

channel

The signaling channel to use

Return Value

The newly initialized instance

Declared In

RespokeConnection+private.h

setPresence:

- (void)setPresence:(NSObject *)newPresence
Discussion

Set the presence value for this connection

Parameters

newPresence

The new presence value

Declared In

RespokeConnection+private.h