laravel-echo-server icon indicating copy to clipboard operation
laravel-echo-server copied to clipboard

Can't subscribe to private channel with latest versions of socket.io-client

Open HalfBottleOfMind opened this issue 4 years ago • 2 comments

Can't subscribe to private channel with latest versions of socket.io-client. With socket.io-client^3.0.0 when i try to subscribe private channel i'm getting error "Bad handshake method". Downgrading client to ^2.3.0 solves the problem.

Solution is to update laravel-echo-server to support socket.io-client^3.0.0.

HalfBottleOfMind avatar Nov 16 '20 07:11 HalfBottleOfMind

Thanks for reporting. There are some breaking changes in Socket.io 3.0 so please I will investigate this as time permits. Thanks

tlaverdure avatar Nov 16 '20 12:11 tlaverdure

I have a fork here that is already ported to v3 and was made to be Docker-ready: https://github.com/renoki-co/echo-server

However, I don't have a bad handshake method, but I do have an issue regarding reconnection: https://github.com/laravel/echo/issues/295, and I was redirected here tho.

rennokki avatar Jan 08 '21 12:01 rennokki