Phaser ES6 call a scene class from Normal Class

I have 2 class one is “checkConnection” and other is “connectionLost”.
check connection class:-

export default class checkConnection
{
i need to call the scene class ?
}

Scene class:-

import { Scene } from ‘phaser’;

class connectionLost extends Scene {
constructor() {
super({ key: connectionLost });
}

/**

  • create
    */
    create()
    {
    //Show Popup Contains connection Lost Message.
    }
    }

export default connectionLost;

Lots of them tells can’t call normal class to scene class. please Go to trigger custom Window event. Anyother option there to call. Please share your Knowledge.

Anybody There to reply Me.?

do you mean like:
this.scene.start('connectionLost'); ??

this.scene.get('connectionLost') // → connectionLost {…}

?

Yes Like That. this.scene is undefined Error.

I think you need to extends it properly:
class connectionLost extends Phaser.Scene {

Hello, I made a full example of classes + phaser + es6 here.