Renderer messaging is used to communicate with a single renderer. It's returned from {@link notebooks.createRendererMessaging}.

Fields

postMessage(message:Any, ?editor:NotebookEditor):Thenable<Bool>

Send a message to one or all renderer.

Parameters:

message

Message to send

editor

Editor to target with the message. If not provided, the message is sent to all renderers.

Returns:

a boolean indicating whether the message was successfully delivered to any renderer.

read onlyonDidReceiveMessage:Event<{message:Any, editor:NotebookEditor}>

An event that fires when a message is received from a renderer.