JupyterCallbackBasedSocketImpl

Functions

Link copied to clipboard
abstract fun onRawMessage(callback: RawMessageCallback)
Link copied to clipboard

Blocks until a message arrives. Runs all registered callbacks on it when it happens. If an error occurs during the receipt of the message, the message is skipped and the error is logged.

Link copied to clipboard
Link copied to clipboard
abstract fun sendRawMessage(msg: RawMessage)
Link copied to clipboard

Receiving messages when the buffer is full will block the incoming message processor thread (the thread which runs JupyterCallbackBasedSocketImpl.receiveMessageAndRunCallbacks).