Inherits from NSObject
Conforms to NSStreamDelegate
Declared in RCTSRWebSocket.h

Properties

delegate

@property (nonatomic, weak) id<RCTSRWebSocketDelegate> delegate

protocol

@property (nonatomic, readonly, copy) NSString *protocol

readyState

@property (nonatomic, readonly) RCTSRReadyState readyState

url

@property (nonatomic, readonly, strong) NSURL *url

Instance Methods

close

- (void)close

closeWithCode:reason:

- (void)closeWithCode:(NSInteger)code reason:(NSString *)reason

initWithURL:

- (instancetype)initWithURL:(NSURL *)url

initWithURL:protocols:

- (instancetype)initWithURL:(NSURL *)url protocols:(NSArray *)protocols

initWithURLRequest:

- (instancetype)initWithURLRequest:(NSURLRequest *)request

initWithURLRequest:protocols:

- (instancetype)initWithURLRequest:(NSURLRequest *)request protocols:(NSArray *)protocols

open

- (void)open

scheduleInRunLoop:forMode:

- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode

send:

- (void)send:(id)data

sendPing:

- (void)sendPing:(NSData *)data

setDelegateDispatchQueue:

- (void)setDelegateDispatchQueue:(dispatch_queue_t)queue

setDelegateOperationQueue:

- (void)setDelegateOperationQueue:(NSOperationQueue *)queue

unscheduleFromRunLoop:forMode:

- (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode