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

Unified Diff: native_client_sdk/src/examples/websocket/example.js

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 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: native_client_sdk/src/examples/websocket/example.js
diff --git a/native_client_sdk/src/examples/websocket/example.js b/native_client_sdk/src/examples/websocket/example.js
index cc99dd309b1151ac12426d7ef63f6699c3ba8264..561d044e32a3249604a1363009982e6051b34f5f 100644
--- a/native_client_sdk/src/examples/websocket/example.js
+++ b/native_client_sdk/src/examples/websocket/example.js
@@ -34,3 +34,7 @@ function doClose() {
// Send a request message. See also websocket.cc for the request format.
common.naclModule.postMessage('c;');
}
+
+function handleMessage(message) {
+ common.logMessage(message.data + '\n');
+}
« no previous file with comments | « native_client_sdk/src/examples/websocket/example.dsc ('k') | native_client_sdk/src/examples/websocket/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698