SKYLINKConnectionMessagesDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

Delegate methods are called on the main thread.

– connection:didReceiveCustomMessage:public:peerId:

Called 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:

Called 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:

Called 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