Open dkulyk opened 4 years ago
Bump , any solution?
bump, would love to see this merged, we encountered this today.
We are also having this problem now, the error looks very close to the above and thinking this might fix it. It is basically causing the Laravel Echo server to crash about once a minute where supervisor then restarts it. Here is the stack trace we are getting:
/usr/local/lib/node_modules/laravel-echo-server/dist/channels/presence-channel.js:75
members = members.filter(function (m) { return m.socketId != member.socketId; });
^
TypeError: Cannot read properties of undefined (reading 'socketId')
at /usr/local/lib/node_modules/laravel-echo-server/dist/channels/presence-channel.js:75:81
at Array.filter (<anonymous>)
at /usr/local/lib/node_modules/laravel-echo-server/dist/channels/presence-channel.js:75:31
at processTicksAndRejections (node:internal/process/task_queues:96:5)
We are currently using Laravel Echo Server 1.6.2
@ulc-brian if it's helpful, we have a fixed branch we're using at http://github.com/umn-latis/laravel-echo-server, in npm as @umn-latis/laravel-echo-server. We're doing thousands of concurrent connects on it without crashes (knock on wood).
Awesome, thanks for that @cmcfadden, I will likely have to do that until this is merged.
This PR adds check for member and reduce loops find + filter => only filter
On highload projects sometimes I catch:
a member is not present on a channel.