Go to the documentation of this file.
43 #ifndef DOXYGEN_SKIP_THIS
44 @property (nonatomic, readonly)
id __nullable dataChannel;
48 @property (nonatomic, readonly) NSUInteger bufferSize;
49 #endif // !DOXYGEN_SKIP_THIS
90 - (BOOL)send:(NSObject* __nonnull)data;
Alternative class as DataConnection.
Definition: SKWDataConnection.h:41
void close()
Closes the data connection gracefully, cleaning up underlying DataChannels and PeerConnections.
@ SKW_DATACONNECTION_EVENT_ERROR
Errors on the data conenction are almost always fatal and will destroy the data connection.
Definition: SKWDataConnection.h:26
@ SKW_DATACONNECTION_EVENT_CLOSE
Emitted when either you or the remote peer closes the data connection.
Definition: SKWDataConnection.h:24
SKWDataConnectionEventEnum
Data connection event type.
Definition: SKWDataConnection.h:17
Data channel.
Definition: SKWDataChannel.h:19
void(^ SKWDataConnectionEventCallback)(NSObject *__nullable arg)
Data connection event callback signature.
Definition: SKWDataConnection.h:32
Base class of SKWDataConnection and SKWMediaConnection.
Definition: SKWConnection.h:62
@ SKW_DATACONNECTION_EVENT_DATA
Emitted when data is received from the remote peer.
Definition: SKWDataConnection.h:22
@ SKW_DATACONNECTION_EVENT_OPEN
Emitted when the connection is established and ready-to-use.
Definition: SKWDataConnection.h:20