nativescript-socket.io
nativescript-socket.io copied to clipboard
Cant connect to nodejs socket v4 with io.socket:socket.io-client v1
Hello,
A small tip:
This module wont work with nodejs socket.io server 4.0.0
by connecting with the client socket io.socket:socket.io-client: 1+
, you should upgrade current socket client version to io.socket:socket.io-client:2+
.
After changing the dependencies in include.gradle
from:
dependencies {
compile ('io.socket:socket.io-client:1.+') {
exclude group: 'org.json', module: 'json'
}
}
to:
dependencies {
compile ('io.socket:socket.io-client:2.+') {
exclude group: 'org.json', module: 'json'
}
}
i could establish the connection to nodejs server. I hope it will help to community!
I had the same issue, your solution worked 10/10.
Hmm, no sadly doesn't work for me
I've got it fixed now. I had to add the network_security_config.xml file to my project.