2016-02-17 07:04:18 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTDefines.h>
|
|
|
|
#import <React/RCTWebSocketProxyDelegate.h>
|
2016-02-17 07:04:18 +00:00
|
|
|
|
|
|
|
#if RCT_DEV // Only supported in dev mode
|
|
|
|
|
2016-12-08 15:28:12 +00:00
|
|
|
@protocol RCTWebSocketProxyDelegate;
|
|
|
|
|
|
|
|
@protocol RCTWebSocketObserver
|
|
|
|
- (instancetype)initWithURL:(NSURL *)url;
|
|
|
|
@property (nonatomic, weak) id<RCTWebSocketProxyDelegate> delegate;
|
2016-12-08 15:28:13 +00:00
|
|
|
- (void)start;
|
2016-12-08 15:28:12 +00:00
|
|
|
@end
|
|
|
|
|
2016-02-17 07:04:18 +00:00
|
|
|
#endif
|