How to use the enchannel-zmq-backend/src.createMainChannelFromSockets function in enchannel-zmq-backend

To help you get started, we’ve selected a few enchannel-zmq-backend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / nteract / applications / desktop / __mocks__ / enchannel-zmq-backend.ts View on Github external
async createMainChannel() {
    const shellSocket = new HokeySocket();
    const iopubSocket = new HokeySocket();
    const sockets = {
      shell: shellSocket,
      iopub: iopubSocket
    };

    const channels = await createMainChannelFromSockets(sockets, {
      session: "spinning",
      username: "dj"
    });

    return channels;
  }
};

enchannel-zmq-backend

Channeling jupyter over zmq

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis