Slide 56
Slide 56 text
this.onPostResponses[roomName] = API.graphql({
query: onPostResponses,
variables: {
roomName: roomName,
},
authMode: GRAPHQL_AUTH_MODE.API_KEY,
}).subscribe({
next: ({ provider, value }) => {
console.log('onPostResponses', { provider, value })
value.data.onPostResponses.items.map(item => {
this.subscriptionMessages[item.roomName].push(item)
})
},
})
src/views/CloseChat.vue
5.Single Publisher