A 'comm_msg' message on the 'iopub' channel.

See Comm msg.

interface ICommMsgMsg<T> {
    buffers?: (ArrayBuffer | ArrayBufferView)[];
    channel: T;
    content: {
        comm_id: string;
        data: JSONObject;
    };
    header: IHeader<"comm_msg">;
    metadata: JSONObject;
    parent_header: IHeader<KernelMessage.MessageType> | Record<string, never>;
}

Type Parameters

  • T extends "iopub" | "shell" = "iopub" | "shell"

Hierarchy (view full)

Properties

buffers?: (ArrayBuffer | ArrayBufferView)[]

An optional list of binary buffers.

channel: T

The channel on which the message is transmitted.

content: {
    comm_id: string;
    data: JSONObject;
}

The content of the message.

Type declaration

header: IHeader<"comm_msg">

The message header.

metadata: JSONObject

Metadata associated with the message.

parent_header: IHeader<KernelMessage.MessageType> | Record<string, never>

The parent message