Socket.IO v3.0 support
See original GitHub issue- Echo Version: 1.9.0
- Laravel Version: 8.x
- PHP Version: 7.4
- NPM Version: 6.14.6
- Node Version: 12.18.3
Description:
After updating Socket.IO to v3.0.1 there are constant erros of Bad handshake method
.
{"code":2,"message":"Bad handshake method"}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:26 (14 by maintainers)
Top Results From Across the Web
Migrating from 2.x to 3.0 - Socket.IO
0, the v3 server is now able to communicate with v2 clients. More information below. A v3 client is still not be able...
Read more >Migrating from 3.x to 4.0 - Socket.IO
Ensure compatibility with Swift v15 clients. Before version 16.0.0, the Swift client would not include the EIO query parameter in the HTTP ...
Read more >Socket.IO 3 Release
We are happy to announce the release of Socket.IO v3! Migration guide. This release contains a few non backward compatible changes.
Read more >Client API - Socket.IO
This is documentation for Socket.IO 3.x, which is no longer actively maintained. For up-to-date documentation, see the latest version (4.x).
Read more >Socket.IO 3.1.0
Hello everyone! We just published a new version of Socket.IO: 3.1.0. In order to ease the migration to Socket.IO v3, the v3 server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it working without any problems:
With this JS:
For the server I cloned the
laravel-echo-server
repo, upgraded to the version 3.0.1 and just set this settings on thelaravel-echo-server.json
file:All Worked well both public and private channel.
We’ve decided we won’t be investing time anymore into Socket.io since we don’t maintain the laravel-echo-server package. Instead we recommend to use something like https://github.com/beyondcode/laravel-websockets. Sorry for this and thank you for understanding.