macro_rules! send {
    ($($json:tt)+) => { ... };
}
Expand description

Writes the given JSON data to stdout, thereby ‘sending’ a message back to Chrome. If you are on stable, then you also need to import macros from the serde_json crate.

Example

use chrome_native_messaging::send;
use serde_json::json;

send!({ "msg": "Hello, world!" });