Skip to content

Commit

Permalink
fix: to await on opening login socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Jan 10, 2024
1 parent 321c7aa commit 0bae869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ class Client extends GameShell {
this.loginMessage1 = 'Connecting to server...';
await this.drawTitleScreen();
}
ClientStream.openSocket({host: Client.HOST, port: Client.PORT})
await ClientStream.openSocket({host: Client.HOST, port: Client.PORT})
.then((socket: WebSocket): void => {
this.stream = new ClientStream(socket);
})
Expand Down

0 comments on commit 0bae869

Please sign in to comment.