Sfoglia il codice sorgente

:recycle: little more descriptive consoles

tags/0.0.1^2
J 3 anni fa
parent
commit
6feeb112d9

+ 3
- 3
frontend/src/components/ProfileCardList.vue Vedi File

@@ -107,13 +107,13 @@ const view = pid => {
107 107
 }
108 108
 const chat = async pid => {
109 109
     const chatter = currentProfile.chatter
110
-    console.log('chatter', chatter)
110
+    console.log('mock sender:', pid)
111 111
     const res = await chatter.publish(chatter.subscriptions[0], {
112 112
         title: 'pong',
113 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 117
     //router.push({ path: `/chat/${pid}` })
118 118
 }
119 119
 const pass = () => {

+ 2
- 2
frontend/src/services/chat.service.js Vedi File

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

+ 2
- 1
frontend/src/services/login.service.js Vedi File

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

Loading…
Annulla
Salva