Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h

Issue 1334003002: Loopback mode for AppRTCDemo on iOS. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add call options header and start call button Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h
diff --git a/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h b/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h
index 2bd6264aefbbf6007624f0f77873b5c3dd32f80d..ffb0b724afab13a16f95bfb90bf2ccf533cf59b2 100644
--- a/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h
+++ b/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.h
@@ -29,3 +29,13 @@
- (void)sendMessage:(ARDSignalingMessage *)message;
@end
+
+// Loopback mode is used to cause the client to connect to itself for testing.
+// A second web socket connection is established simulating the other client.
+// Any messages received are sent back to the WebSocket server after modifying
+// them as appropriate.
+@interface ARDLoopbackWebSocketChannel : ARDWebSocketChannel
+
+- (instancetype)initWithURL:(NSURL *)url restURL:(NSURL *)restURL;
+
+@end

Powered by Google App Engine
This is Rietveld 408576698