|
|
@@ -15,6 +15,19 @@ const providerMethods = {
|
|
15
|
15
|
}
|
|
16
|
16
|
|
|
17
|
17
|
/**
|
|
|
18
|
+ * Message factory
|
|
|
19
|
+ * simple message object creator
|
|
|
20
|
+ * to notify the frontend ui of a new message
|
|
|
21
|
+ */
|
|
|
22
|
+const messageFactory = {
|
|
|
23
|
+ success: () => console.log('success message for sent message'),
|
|
|
24
|
+ received: (e) => console.log('received message for received message', e),
|
|
|
25
|
+ error: () => console.log('error message for failed message'),
|
|
|
26
|
+}
|
|
|
27
|
+
|
|
|
28
|
+/**
|
|
|
29
|
+ *
|
|
|
30
|
+ *
|
|
18
|
31
|
* Breaking out as much pubnub specific flavor
|
|
19
|
32
|
*/
|
|
20
|
33
|
const setupPubnub = async uuid => {
|
|
|
@@ -129,6 +142,7 @@ class Chatter {
|
|
129
|
142
|
this.subscriptions = [MAIN_CHANNEL]
|
|
130
|
143
|
console.warn('chatter stop no implemented')
|
|
131
|
144
|
}
|
|
|
145
|
+
|
|
132
|
146
|
}
|
|
133
|
147
|
|
|
134
|
148
|
export { Chatter }
|