Add support for sending a message (nominally JSON string) from a JS function to C++ via a Dullahan callback.#30
Open
callumlinden wants to merge 9 commits into
Open
Add support for sending a message (nominally JSON string) from a JS function to C++ via a Dullahan callback.#30callumlinden wants to merge 9 commits into
callumlinden wants to merge 9 commits into
Conversation
… and macOS by pulling in the updated CEF 148 autobuild package. (Linux to follow)
…le examples in the OpenGL example app
…rom one with a JSON blob
…or passing an ID - e.g. 'json', 'base64' etc. and then the payload itself as the second paramater e.g. json string
… link to the test web page in the opengl-example test app bookmark links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for sending a message (2 strings: and ID and a payload) from a JavaScript function to C++ via a Dullahan callback.
Typical usage is:
and if you implement the
onJStoCPPMsgCallback(const std::string id, const std::string payload)callback in your application, when the JavaScriptJSONtoCPPcall is made in your browser, that callback will be triggered in the C++ code and the ID / payload can be retrievedMore to come later once we figure out how best to use this