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:(nonnull SKYLINKConnection *)connection didReceiveCustomMessage:(null_unspecified id)message public:(BOOL)isPublic peerId:(null_unspecified 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:(nonnull SKYLINKConnection *)connection didReceiveDCMessage:(null_unspecified id)message public:(BOOL)isPublic peerId:(null_unspecified 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:(nonnull SKYLINKConnection *)connection didReceiveBinaryData:(null_unspecified NSData *)data peerId:(null_unspecified NSString *)peerId

Parameters

connection

The underlying connection object.

data

Binary data.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h