|
|
@ -68,8 +68,8 @@ const handleMsg = async (msg, id) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const fanoutMsg = async (channel, data) => {
|
|
|
|
const fanoutMsg = (channel, data) => {
|
|
|
|
Object.keys(connections).forEach((k) => {
|
|
|
|
Object.keys(connections).forEach( async (k) => {
|
|
|
|
if (connections[k].events.indexOf(`${channel}:read`) !== -1) {
|
|
|
|
if (connections[k].events.indexOf(`${channel}:read`) !== -1) {
|
|
|
|
const d = {
|
|
|
|
const d = {
|
|
|
|
event: `${channel}:read`,
|
|
|
|
event: `${channel}:read`,
|
|
|
|