You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
classDispatchController{constructor({ socket, request, auth }){this.socket=socketthis.request=requestthis.auth=auth}asynconLocationUpdate(location){// Have tried like thisthis.socket.broadcast('updated:location',location);// And like thisWs.getChannel('dispatch:*').topic('dispatch:3').broadcast('updated:location',location);}}
In the above example, I have n devices connected, and each device is broadcasting data once every 3 seconds. The information is then distributed to every other connected device. The trouble is once clustering is enabled, this ceases to work, and nobody get's each others messages.
Any ideas what I am doing wrong here, or if this is a bug?
Thanks!
The text was updated successfully, but these errors were encountered:
Package version
Node.js and npm version
Sample Code (to reproduce the issue)
server.js
(straight out of the textbook)socket.js
DispatchController.js
In the above example, I have
n
devices connected, and each device is broadcasting data once every 3 seconds. The information is then distributed to every other connected device. The trouble is once clustering is enabled, this ceases to work, and nobody get's each others messages.Any ideas what I am doing wrong here, or if this is a bug?
Thanks!
The text was updated successfully, but these errors were encountered: