WSCDataChannelConfig Class Reference

Inherits from NSObject
Declared in WSCDataChannelConfig.h

Overview

Configuration for an underlying DataChannel.

  label

Label used to identify underlying data channel.

@property (nonatomic, readonly) NSString *label

Discussion

Label used to identify underlying data channel.

Declared In

WSCDataChannelConfig.h

  option

Configuration items for the underlying data channel.

@property (nonatomic, readonly) WSCDataChannelOption *option

Discussion

Configuration items for the underlying data channel.

Declared In

WSCDataChannelConfig.h

– initWithLabel:withOption:

Initiates a WSCDataChannelConfig object.

- (instancetype)initWithLabel:(NSString *)label withOption:(WSCDataChannelOption *)option

Parameters

label

the label is used to identify this data channel

option

the option is to describe the data channel configuration

Discussion

Initiates a WSCDataChannelConfig object.

Declared In

WSCDataChannelConfig.h

– toJson

Returns a JSON string representation of the WSCDataChannelConfig object.

- (NSDictionary *)toJson

Return Value

NSString

Discussion

Returns a JSON string representation of the WSCDataChannelConfig object.

Declared In

WSCDataChannelConfig.h

– init

Disallow init.

- (instancetype)init

Discussion

Disallow init.

Declared In

WSCDataChannelConfig.h