// Creating a new session manager typeclass CustomSessionManager extends BaseSessionManager { readonly managerType = 'custom' as const; async startNew(options: Session.ISessionOptions): Promise<Session.ISessionConnection> { // Create kernel first const kernel = await this._kernelManager.startNew(options.kernel); // Wrap in session connection const session = createSessionConnection(kernel, options); this._activeSession = session; this._runningChanged.emit([session.model]); return session; }} Copy
// Creating a new session manager typeclass CustomSessionManager extends BaseSessionManager { readonly managerType = 'custom' as const; async startNew(options: Session.ISessionOptions): Promise<Session.ISessionConnection> { // Create kernel first const kernel = await this._kernelManager.startNew(options.kernel); // Wrap in session connection const session = createSessionConnection(kernel, options); this._activeSession = session; this._runningChanged.emit([session.model]); return session; }}
Example