Skip to content

Commit

Permalink
Update ViewGame.js (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-pousse authored Sep 7, 2016
1 parent bbddd4b commit 59670f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/ViewGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ViewGame extends Component {
.then((json) => this.updateGameState(json.game))
.catch((error) => console.log(error))

this.ws = new WebSocket('ws://' + window.location.hostname + ':8080/api/games/' + this.state.gameId + '/ws');
this.ws = new WebSocket('wss://' + window.location.hostname + '/api/games/' + this.state.gameId + '/ws');
this.ws.onmessage = (event) => this.updateGameState(JSON.parse(event.data))
}

Expand Down Expand Up @@ -77,4 +77,4 @@ class ViewGame extends Component {
}
}

export default ViewGame;
export default ViewGame;

0 comments on commit 59670f9

Please sign in to comment.