wails/v3/examples/raw-message
Andrey Pshenkin 7d0016bbbe
[V3] Add origin to raw message handler (#4710)
* Add support for origin tracking in raw message handling

- Implemented origin and top origin tracking for web messages from JavaScript.
- Updated `RawMessageHandler` to include `originInfo`.
- Added cross-platform support for retrieving the origin of messages in macOS, Windows, and Linux.

* fix build

* fix build

* fix build

* fix build

* fix build

* Fix nil checks and string handling for message origins across platforms

- Ensure proper fallback to empty strings for `origin` and `topOrigin` when errors or nil values are encountered.
- Normalize handling of `message.body` to account for non-NSString values in macOS.

* add docs

* Remove unused doc

* update changelog

* fix build

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-08 20:29:09 +11:00
..
assets Support raw messages from JS 2024-06-08 20:43:24 +10:00
main.go [V3] Add origin to raw message handler (#4710) 2025-12-08 20:29:09 +11:00
README.md Support raw messages from JS 2024-06-08 20:43:24 +10:00

Raw Message Example

This example is a demonstration of sending raw messages from JS to Go.

Running the example

To run the example, simply run the following command:

go run main.go