Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
return false;
});
const session: Session = {
id,
parent_header: {},
last_header: {
msg_id: "init_id",
msg_type: "execute_request",
username: 'pipcook',
version: "5.0",
session: "pipcook_session"
},
dealerMsg: {},
socketDealer: new zmq.Dealer,
socketSubscriber: new zmq.Subscriber,
timer: null,
ioPort: Executor.latestIoPort,
shellPort: Executor.latestShellPort,
kernel
}
Executor.latestIoPort++;
Executor.latestShellPort++;
Executor.sessions.push(session);
return session;
}