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
-
Undocumented
Declaration
Objective-C
+ (instancetype)messageWithData:(NSData *)data;
-
Undocumented
Declaration
Objective-C
+ (instancetype)messageWithString:(NSString *)string;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithData:(NSData *)data NS_DESIGNATED_INITIALIZER;
Swift
init(data: Data)
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithString:(NSString *)string NS_DESIGNATED_INITIALIZER;
Swift
init(string: String)
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) LCRTMWebSocketMessageType type
Swift
var type: LCRTMWebSocketMessageType { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, nullable, readonly) NSData *data
Swift
var data: Data? { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, nullable, readonly) NSString *string
Swift
var string: String? { get }
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;