OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 @class ARDJoinResponse; | 13 @class ARDJoinResponse; |
14 @class ARDMessageResponse; | 14 @class ARDMessageResponse; |
15 @class ARDSignalingMessage; | 15 @class ARDSignalingMessage; |
16 | 16 |
17 @protocol ARDRoomServerClient <NSObject> | 17 @protocol ARDRoomServerClient <NSObject> |
18 | 18 |
19 - (void)joinRoomWithRoomId:(NSString *)roomId | 19 - (void)joinRoomWithRoomId:(NSString *)roomId |
| 20 isLoopback:(BOOL)isLoopback |
20 completionHandler:(void (^)(ARDJoinResponse *response, | 21 completionHandler:(void (^)(ARDJoinResponse *response, |
21 NSError *error))completionHandler; | 22 NSError *error))completionHandler; |
22 | 23 |
23 - (void)sendMessage:(ARDSignalingMessage *)message | 24 - (void)sendMessage:(ARDSignalingMessage *)message |
24 forRoomId:(NSString *)roomId | 25 forRoomId:(NSString *)roomId |
25 clientId:(NSString *)clientId | 26 clientId:(NSString *)clientId |
26 completionHandler:(void (^)(ARDMessageResponse *response, | 27 completionHandler:(void (^)(ARDMessageResponse *response, |
27 NSError *error))completionHandler; | 28 NSError *error))completionHandler; |
28 | 29 |
29 - (void)leaveRoomWithRoomId:(NSString *)roomId | 30 - (void)leaveRoomWithRoomId:(NSString *)roomId |
30 clientId:(NSString *)clientId | 31 clientId:(NSString *)clientId |
31 completionHandler:(void (^)(NSError *error))completionHandler; | 32 completionHandler:(void (^)(NSError *error))completionHandler; |
32 | 33 |
33 @end | 34 @end |
OLD | NEW |