deploy on cloud

This commit is contained in:
sparshg
2024-09-25 23:36:47 +05:30
parent 52c7b25393
commit 6262462323
4 changed files with 16 additions and 20 deletions

View File

@@ -12,10 +12,8 @@ export class State {
turn = $state(-1); // -1 not my turn, 0 might be, 1 is
socket: Socket;
constructor(hostname: string) {
// let session = sessionStorage.getItem('session');
this.socket = io(`ws://${hostname}:3000/`, {
constructor() {
this.socket = io(`wss://battleship.icyground-d91964e0.centralindia.azurecontainerapps.io`, {
transports: ['websocket'],
auth: { session: sessionStorage.getItem('session') }
});