diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-12 23:45:57 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-12 23:46:30 +0100 |
commit | 89b89e93f3b60c0edca63e648d8e8a37c968de3a (patch) | |
tree | 4fe8236f0a718920d3487b71cc33f9c49eb50ed5 /src/main/resources/static | |
parent | Lobby vs Game separation (diff) | |
download | seven-wonders-89b89e93f3b60c0edca63e648d8e8a37c968de3a.tar.gz seven-wonders-89b89e93f3b60c0edca63e648d8e8a37c968de3a.tar.bz2 seven-wonders-89b89e93f3b60c0edca63e648d8e8a37c968de3a.zip |
Update frontend POC with new lobby system
Diffstat (limited to 'src/main/resources/static')
-rw-r--r-- | src/main/resources/static/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/static/app.js b/src/main/resources/static/app.js index 5a3bc38e..dfdcf934 100644 --- a/src/main/resources/static/app.js +++ b/src/main/resources/static/app.js @@ -18,12 +18,12 @@ function connect() { setConnected(true); console.log('Connected: ' + frame); - stompClient.subscribe('/broadcast/games', function (gameId) { + stompClient.subscribe('/topic/games', function (gameId) { console.log("Received new game: " + gameId); addNewGame(gameId.body); }); - stompClient.subscribe('/broadcast/players', function (player) { + stompClient.subscribe('/topic/players', function (player) { console.log("Received new player: " + player); addNewPlayer(JSON.parse(player.body)); }); |