tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 510 forks source link

PresenceChannel onJoin fails if Authentication got status 502 because of timeout #586

Open QubeX2 opened 2 years ago

QubeX2 commented 2 years ago

PresenceChannel onJoin fails if Authentication got 502 because of timeout If authentication gets status 502 because of to many requests at the same time

To Reproduce Make a page, join a presence channel, open 40 tabs in a webbrowser, when timeouts starts happening close all.

Expected behavior laravel-echo-server shouldn't crash

Additional context if(this.io.sockets.connected && this.io.sockets.connected[socket.id])

solves it when I tested it