probil / vue-socket.io-extended

:v::zap: Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)
MIT License
628 stars 38 forks source link

Support socket.io v4 #536

Closed kmalski closed 3 years ago

kmalski commented 3 years ago

Hi, is there possibility to add support for socket.io v4? I tried to simply use vue-socket.io-extended with socket.io-client v4 and it doesn't work out of the box.

probil commented 3 years ago

Hi @kmalski 👋 It's all about compatibility. It should work if you use socket.io v4 on your server. Versions of the client and server should match.

There is a working example here built on socket.io-client and server v4

Let me know whether it helped. Have a nice day

kmalski commented 3 years ago

Hi @probil Thank you for the advice. During the migration from socket.io v2 to v3 I missed the part about new default cors options. Now everything is working correctly.

Thank you once again 😃