WebProcessExtension.sendMessageToContext

void sendMessageToContext(webkitwebprocessextension.user_message.UserMessage message, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Send message to the #WebKitWebContext corresponding to extension. If message is floating, it's consumed.

If you don't expect any reply, or you simply want to ignore it, you can pass null as calback. When the operation is finished, callback will be called. You can then call [webkitwebprocessextension.web_process_extension.WebProcessExtension.sendMessageToContextFinish] to get the message reply.

Parameters

messagea #WebKitUserMessage
cancellablea #GCancellable or null to ignore
callbackA #GAsyncReadyCallback to call when the request is satisfied or null