diff --git a/src/nitro/Nitro.ts b/src/nitro/Nitro.ts index 4f8fa875..ce740b26 100644 --- a/src/nitro/Nitro.ts +++ b/src/nitro/Nitro.ts @@ -154,13 +154,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; }