Rename and merge files for RCTWebSocketObserver protocol

Summary: No need to have two files; merge it into one and give it an appropriate name.

Reviewed By: javache

Differential Revision: D4296716

fbshipit-source-id: 904d13c23bb8d403b8efcb60f9a4aa5df5b08972
This commit is contained in:
Adam Ernst
2016-12-08 07:28:16 -08:00
committed by Facebook Github Bot
parent 2b0c4591e2
commit 587606987f
5 changed files with 17 additions and 44 deletions

View File

@@ -8,15 +8,16 @@
*/
#import <React/RCTDefines.h>
#import <React/RCTWebSocketProxyDelegate.h>
#if RCT_DEV // Only supported in dev mode
@protocol RCTWebSocketProxyDelegate;
@protocol RCTWebSocketObserverDelegate
- (void)didReceiveWebSocketMessage:(NSDictionary<NSString *, id> *)message;
@end
@protocol RCTWebSocketObserver
- (instancetype)initWithURL:(NSURL *)url;
@property (nonatomic, weak) id<RCTWebSocketProxyDelegate> delegate;
@property (nonatomic, weak) id<RCTWebSocketObserverDelegate> delegate;
- (void)start;
@end

View File

@@ -1,18 +0,0 @@
/**
* 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.
*/
#import <React/RCTDefines.h>
#if RCT_DEV // Only supported in dev mode
@protocol RCTWebSocketProxyDelegate
- (void)didReceiveWebSocketMessage:(NSDictionary<NSString *, id> *)message;
@end
#endif