# HG changeset patch # User Benjamin Golinvaux # Date 1551893195 -3600 # Node ID 97a16b69432140ab6e5b831523d0a01262f53325 # Parent 1b9973905e151dcc060b0badc67bc7eeaed7ba9d Fixes for API changes related to message passing diff -r 1b9973905e15 -r 97a16b694321 Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts --- a/Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts Wed Mar 06 10:57:02 2019 +0100 +++ b/Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts Wed Mar 06 18:26:35 2019 +0100 @@ -9,7 +9,7 @@ args: { } }; - wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); + wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); } function PerformAction(actionName: string) { @@ -19,7 +19,7 @@ args: { } }; - wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); + wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); } class SimpleViewerUI { diff -r 1b9973905e15 -r 97a16b694321 Applications/Samples/Web/simple-viewer-single-file.ts --- a/Applications/Samples/Web/simple-viewer-single-file.ts Wed Mar 06 10:57:02 2019 +0100 +++ b/Applications/Samples/Web/simple-viewer-single-file.ts Wed Mar 06 18:26:35 2019 +0100 @@ -9,7 +9,7 @@ toolName: toolName } }; - wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); + wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); } @@ -19,7 +19,7 @@ commandType: "simple", args: {} }; - wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); + wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); } //initializes the buttons diff -r 1b9973905e15 -r 97a16b694321 Platforms/Wasm/Defaults.cpp --- a/Platforms/Wasm/Defaults.cpp Wed Mar 06 10:57:02 2019 +0100 +++ b/Platforms/Wasm/Defaults.cpp Wed Mar 06 18:26:35 2019 +0100 @@ -350,7 +350,6 @@ printf("%s", message); if (applicationWasmAdapter.get() != NULL) { - printf("sending serialized message to C++\n"); applicationWasmAdapter->HandleSerializedMessageFromWeb(output, std::string(message)); return output.c_str(); } @@ -366,7 +365,6 @@ printf("%s", message); if (applicationWasmAdapter.get() != NULL) { - printf("sending command to C++\n"); applicationWasmAdapter->HandleCommandFromWeb(output, std::string(message)); return output.c_str(); }