MockJupyterWebSocket#

class rubin.nublado.client.MockJupyterWebSocket(user, session_id, parent)#

Bases: object

Simulate the WebSocket connection to a Jupyter Lab.

Note

The methods are named the reverse of what you would expect: send receives a message, and recv sends a message back to the caller. This is because this is a mock of a client library but is simulating a server, so is operating in the reverse direction.

Parameters:

Methods Summary

close()

send(message_str)

Methods Documentation

async close()#
Return type:

None

async send(message_str)#
Parameters:

message_str (str)

Return type:

None