Explorar el Código

:recycle: little more descriptive consoles

tags/0.0.1^2
J hace 3 años
padre
commit
6feeb112d9

+ 3
- 3
frontend/src/components/ProfileCardList.vue Ver fichero

107
 }
107
 }
108
 const chat = async pid => {
108
 const chat = async pid => {
109
     const chatter = currentProfile.chatter
109
     const chatter = currentProfile.chatter
110
-    console.log('chatter', chatter)
110
+    console.log('mock sender:', pid)
111
     const res = await chatter.publish(chatter.subscriptions[0], {
111
     const res = await chatter.publish(chatter.subscriptions[0], {
112
         title: 'pong',
112
         title: 'pong',
113
         description: 'This is my first realtime message!',
113
         description: 'This is my first realtime message!',
114
     })
114
     })
115
-    console.log('chatter', res)
116
-    console.log('chatter', chatter.subscriptions)
115
+    console.log('res:', res)
116
+    console.log('channels:', chatter.subscriptions)
117
     //router.push({ path: `/chat/${pid}` })
117
     //router.push({ path: `/chat/${pid}` })
118
 }
118
 }
119
 const pass = () => {
119
 const pass = () => {

+ 2
- 2
frontend/src/services/chat.service.js Ver fichero

26
     const pubnubClient = await new PubNub({
26
     const pubnubClient = await new PubNub({
27
         publishKey: publishKey,
27
         publishKey: publishKey,
28
         subscribeKey: subscribeKey,
28
         subscribeKey: subscribeKey,
29
-        logVerbosity: true,
29
+        logVerbosity: false,
30
         uuid,
30
         uuid,
31
     })
31
     })
32
     // Pass pubnub specific methods to our placeholder obj
32
     // Pass pubnub specific methods to our placeholder obj
92
         return
92
         return
93
     }
93
     }
94
     async setup(uuid) {
94
     async setup(uuid) {
95
-        this.uuid = uuid
95
+        this.uuid = `${uuid}`
96
         this.provider = await setupPubnub(this.uuid)
96
         this.provider = await setupPubnub(this.uuid)
97
 
97
 
98
         this._listenFor({ listeners: this.listeners })
98
         this._listenFor({ listeners: this.listeners })

+ 2
- 1
frontend/src/services/login.service.js Ver fichero

102
     }
102
     }
103
     setupChatter() {
103
     setupChatter() {
104
         this.chatter = new Chatter()
104
         this.chatter = new Chatter()
105
-        const testAccountUUID = '4523489'
105
+        // Use the reactive id object
106
+        const testAccountUUID = this.id.value
106
         this.chatter.setup(testAccountUUID)
107
         this.chatter.setup(testAccountUUID)
107
     }
108
     }
108
 }
109
 }

Loading…
Cancelar
Guardar