Go to the documentation of this file.
5 #import <Foundation/Foundation.h>
69 #ifndef DOXYGEN_SKIP_THIS
70 @property (nonatomic, readonly) NSDictionary* __nullable payload SKYWAY_API_DEPRECATED;
72 #endif // !DOXYGEN_SKIP_THIS
77 @property (nonatomic, readonly) NSString* __nullable
metadata;
82 @property (nonatomic, readonly) BOOL
isOpen;
87 @property (nonatomic, readonly) NSString* __nullable
peer;
92 @property (nonatomic, readonly) NSString* __nullable
type;
97 @property (nonatomic, readonly) NSString* __nullable
label;
114 #ifndef DOXYGEN_SKIP_THIS
115 @property (nonatomic, readonly)
id __nullable peerConnection SKYWAY_API_DEPRECATED;
117 #endif // !DOXYGEN_SKIP_THIS
136 #pragma mark - Objective-C dependent
138 #ifndef DOXYGEN_SKIP_THIS
139 - (void)getPeerConnectionState:(BOOL)bOutputDebug callback:(
void(^ __nullable)(NSArray* __nullable))callback SKYWAY_API_DEPRECATED;
146 #endif // !DOXYGEN_SKIP_THIS
SKWSerializationEnum serialization
The serialization format of the data sent over the connection.
Definition: SKWConnection.h:107
@ SKW_SERIALIZATION_JSON
JSON.
Definition: SKWConnection.h:24
NSString *__nullable connectionId
Connection ID.
Definition: SKWConnection.h:67
A peer class.
Definition: SKWPeer.h:106
NSString *__nullable type
For type of connection.
Definition: SKWConnection.h:92
void(^ SKWConnectionGetStatsCallback)(NSArray *__nullable stats)
Getting statistics Callback signature.
Definition: SKWConnection.h:52
@ SKW_SERIALIZATION_BINARY
Binary.
Definition: SKWConnection.h:20
SKWSerializationEnum
Serialization type.
Definition: SKWConnection.h:17
@ SKW_SERIALIZATION_BINARY_UTF8
Binary (UTF-8)
Definition: SKWConnection.h:22
BOOL reliable
Whether the underlying data channels are reliable; defined when the connection was initiated.
Definition: SKWConnection.h:102
NSString *__nullable peer
The ID of the peer on the other end of this connection.
Definition: SKWConnection.h:87
NSString *__nullable label
The optional label passed in or assigned by PeerJS when the connection was initiated.
Definition: SKWConnection.h:97
SKWPeer *__nullable provider
Provider PeerObjC object.
Definition: SKWConnection.h:112
Base class of SKWDataConnection and SKWMediaConnection.
Definition: SKWConnection.h:62
BOOL isOpen
This is true if the connection is open and ready for read/write.
Definition: SKWConnection.h:82
NSString *__nullable metadata
Any type of metadata associated with the connection, passed in by whoever initiated the connection.
Definition: SKWConnection.h:77
@ SKW_SERIALIZATION_NONE
NONE.
Definition: SKWConnection.h:26