diff --git a/src/app/services/messaging.js b/src/app/services/messaging.js index 02186cc..24d1fec 100644 --- a/src/app/services/messaging.js +++ b/src/app/services/messaging.js @@ -15,5 +15,5 @@ export function subscribe(subscriber) { } export function dispatchRemotely(action) { - channel.publish({ type: 'DISPATCH', action }); + socket.emit('respond', { type: 'DISPATCH', action }); }