mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 01:10:34 +00:00
Align ios api with android
Reviewed By: kittens Differential Revision: D4897832 fbshipit-source-id: ff3215b45de389b91825371a987314e4bab5421f
This commit is contained in:
parent
82f3964f2d
commit
d5601a3e12
@ -23,6 +23,7 @@
|
||||
|
||||
- (instancetype)initWithURL:(NSURL *)url;
|
||||
@property (nonatomic, weak) id<RCTWebSocketProtocolDelegate> delegate;
|
||||
- (void)send:(id)data;
|
||||
- (void)start;
|
||||
- (void)stop;
|
||||
|
||||
|
@ -34,6 +34,11 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)send:(id)data
|
||||
{
|
||||
[_socket send:data];
|
||||
}
|
||||
|
||||
- (void)start
|
||||
{
|
||||
[self stop];
|
||||
|
Loading…
x
Reference in New Issue
Block a user