Closed saibbyweb closed 3 years ago
So I found Does not yet support Socket:IO v3.x, use v2.x instead!
here
Thank you for pointing out. Just tested on 2.3.0
(1 year old) , it's working. Will stick to that for now.
@triniwiz I believe it would be great if you can put this information regarding server compatibility on the readme of this repo. It will save hours of googling for new devs.
Sorry for stretching this issue, but In my limited testing, the latest v3+ socket.io
server package didn't work on iOS as well. :|
I am using Nativescript-Vue and this plugin is unable to connect to the socket.io server created with latest npm
socket.io
package (^3.0.4). However, If I downgrade the server package to (^2.1.1) as present in your demo, it works.Which platform(s) does your issue occur on?
iOS and Android Emulators
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Create a socket.io server with Node and Express using the latest socket.io package:
In Nativescript-Vue:
This exact code WORKS when the old (more than 3 years old)
socket-io
npm package is used to create the server but DOESN'T WORK when the latestsocket-io
npm package is used to create the server.