ReadonlycommThe unique id for the comm channel.
OptionalcommsWhether comms are running on subshell or not.
ReadonlyisReadonlytargetThe target name for the comm channel.
Close the comm.
Optionaldata: JSONValueThe data to send to the server on opening.
Optionalmetadata: JSONObjectAdditional metadata for the message.
Optionalbuffers: (ArrayBuffer | ArrayBufferView)[]A future for the generated message.
This will send a comm_close message to the kernel, and call the
onClose callback if set.
This is a no-op if the comm is already closed.
Dispose of the resources held by the object.
If the object's dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Open a comm with optional data and metadata.
Optionaldata: JSONValueThe data to send to the server on opening.
Optionalmetadata: JSONObjectAdditional metadata for the message.
Optionalbuffers: (ArrayBuffer | ArrayBufferView)[]A future for the generated message.
This sends a comm_open message to the server.
Send a comm_msg message to the kernel.
The data to send to the server on opening.
Optionalmetadata: JSONObjectAdditional metadata for the message.
Optionalbuffers: (ArrayBuffer | ArrayBufferView)[]Optional buffer data.
OptionaldisposeOnDone: booleanWhether to dispose of the future when done.
A future for the generated message.
This is a no-op if the comm has been closed.
A client side Comm interface.