pub fn request_async<F: Future<Output = String> + 'static>(
request: &Request,
id: String,
on_request: F,
)
Expand description
Handling an incoming request from javascript.
The callback function has to be non blocking and async
If an exception occurs, the error text is written to the error console