Skip to content

Commit

Permalink
Activate realtime
Browse files Browse the repository at this point in the history
  • Loading branch information
djalmaaraujo committed Dec 29, 2017
1 parent 2057100 commit 3195193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/services/wedeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ const We = {

getToken().then((token) => {
// Real time listener
// const socker = bindSocket()
const socker = bindSocket()

// socker.on('changes', (data) => grabData(cb))
// socker.on('connect', () => console.log('connected'))
// socker.on('disconnect', () => console.log('connected'))
socker.on('changes', (data) => grabData(cb))
socker.on('connect', () => console.log('connected'))
socker.on('disconnect', () => console.log('connected'))
}).catch((reason) => {
console.log('Error: ', reason)
return cb({ loggedIn: false })
Expand Down

0 comments on commit 3195193

Please sign in to comment.