LCRTMWebSocketMessage

Objective-C

@interface LCRTMWebSocketMessage : NSObject

+ (instancetype)messageWithData:(NSData *)data;
+ (instancetype)messageWithString:(NSString *)string;

- (instancetype)initWithData:(NSData *)data NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithString:(NSString *)string NS_DESIGNATED_INITIALIZER;

@property (nonatomic, readonly) LCRTMWebSocketMessageType type;
@property (nonatomic, nullable, readonly) NSData *data;
@property (nonatomic, nullable, readonly) NSString *string;

- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

@end

Swift

class LCRTMWebSocketMessage : NSObject

Undocumented