2016-02-16 23:04:18 -08: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 07:47:52 -08:00
|
|
|
#import <React/RCTDefines.h>
|
2016-02-16 23:04:18 -08:00
|
|
|
|
|
|
|
#if RCT_DEV // Only supported in dev mode
|
|
|
|
|
2016-12-08 07:28:16 -08:00
|
|
|
@protocol RCTWebSocketObserverDelegate
|
|
|
|
- (void)didReceiveWebSocketMessage:(NSDictionary<NSString *, id> *)message;
|
|
|
|
@end
|
2016-12-08 07:28:12 -08:00
|
|
|
|
|
|
|
@protocol RCTWebSocketObserver
|
|
|
|
- (instancetype)initWithURL:(NSURL *)url;
|
2016-12-08 07:28:16 -08:00
|
|
|
@property (nonatomic, weak) id<RCTWebSocketObserverDelegate> delegate;
|
2016-12-08 07:28:13 -08:00
|
|
|
- (void)start;
|
2016-12-08 07:28:17 -08:00
|
|
|
- (void)stop;
|
2016-12-08 07:28:12 -08:00
|
|
|
@end
|
|
|
|
|
2016-02-16 23:04:18 -08:00
|
|
|
#endif
|