Debug joinroom result

This commit is contained in:
samcm 2018-02-09 22:54:43 +11:00
parent a21d46e29e
commit 8c8dd605fa
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ if (process.env.NODE_ENV == 'development') {
const state = {
count: 0,
appTitle: 'SyncLounge',
appVersion: '1.5.0',
appVersion: '1.5.0.1',
background: null,
shownChat: false,
plex: null,
@ -526,6 +526,7 @@ const plexTogether = {
console.log(data)
state._socket.emit('join', new getHandshakeUser(data.user, data.roomName, data.password))
state._socket.on('join-result', function (result, _data, details, currentUsers) {
console.log('Join result:', result, details)
commit('CLEAR_MESSAGES')
if (result) {
commit('SET_ROOM', _data.room)