SKYLINKConnectionMessagesDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

The delegate to receive events related to remote peer messages.

– connection:didReceiveCustomMessage:public:peerId:

Upon receiving a private or public message.

- (void)connection:(SKYLINKConnection *)connection didReceiveCustomMessage:(id)message public:(BOOL)isPublic peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

message

User defined message. May be an NSString, NSDictionary or NSArray.

isPublic

Flag to specify whether the message was a broadcast.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didReceiveDCMessage:public:peerId:

Upon receiving a data channel chat message.

- (void)connection:(SKYLINKConnection *)connection didReceiveDCMessage:(id)message public:(BOOL)isPublic peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

message

User defined message. May be an NSString, NSDictionary or NSArray.

isPublic

Flag to specify whether the message was a broadcast.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didReceiveBinaryData:peerId:

Upon receiving binary data on data channel.

- (void)connection:(SKYLINKConnection *)connection didReceiveBinaryData:(NSData *)data peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

data

Binary data.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h