Construct a new comm channel.
Test whether the delegate has been disposed.
The unique id for the comm channel.
Get the callback for a comm close event.
This is called when the comm is closed from either the server or client.
See also: [[ICommClose]], close
Set the callback for a comm close event.
This is called when the comm is closed from either the server or client. If the function returns a promise, and the kernel was closed from the server, kernel message processing will pause until the returned promise is fulfilled.
See also: close
Get the callback for a comm message received event.
This is called when a comm message is received. If the function returns a promise, kernel message processing will pause until it is fulfilled.
Set the callback for a comm message received event.
This is called when a comm message is received. If the function returns a promise, kernel message processing will pause until it is fulfilled.
The target name for the comm channel.
Close the comm.
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.
See also: [[ICommClose]], onClose
Dispose of the delegate and invoke the callback function.
Open a comm with optional data and metadata.
This sends a comm_open
message to the server.
See also: [[ICommOpen]]
Send a comm_msg
message to the kernel.
This is a no-op if the comm has been closed.
See also: [[ICommMsg]]
Generated using TypeDoc
Comm channel handler.