diff --git a/src/nitro/Nitro.ts b/src/nitro/Nitro.ts index 4715385d..76add94c 100644 --- a/src/nitro/Nitro.ts +++ b/src/nitro/Nitro.ts @@ -146,13 +146,13 @@ export class Nitro extends Application implements INitro this._roomEngine.init(); } - new GameMessageHandler(this._communication.connection); - if(!this._communication.connection) { throw new Error('No connection found'); } + new GameMessageHandler(this._communication.connection); + this._isReady = true; }