New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant' connect with socket.io #6835
Comments
@jannomeister Thanks for posting! We'll take a look as soon as possible. In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
UPDATE: I updated my sails to the latest |
Are you using sails.io.js-dist or socket.io-client for sails? 🥇 |
@navicstein on the client I used socket.io-client-swift for iOS and socket.io-client for Android. And for sails.js I used raw socket.io functions to emit data to the client. If I'm not mistaken, the default namespace for socket.io server is the base url itself PS: my app is not tied up with the server because it's a mobile application (iOS/Android) |
is it still not enough? |
@jannomeister @hansiemithun Sails has its own version protocol on top of socket.io protocol that provides added functionality like virtual requests, etc. When using other socket.io clients, you have to make sure you reimplement the sails.io client on top. Does anyone have a minimal repo of their client side socket.io code they can share in a new sails app that reproduces this issue? Thanks, that will help us take a closer look. |
Node version: 10.15.3
Sails version (sails): 1.0.2
ORM hook version (sails-hook-orm): 2.0.0-16
Sockets hook version (sails-hook-sockets): ^1.4.0
Grunt hook version (sails-hook-grunt): ^3.0.2
I run two server one using sails.js v1 (port=1337) and plain express (port=3001). I'm using nativescript app (mobile) and when I connect using this url
http://localhost:3001
(plain express), My application connected successfully but when I changed the url tohttp://localhost:1337
(my sailsjs server), My app didnt connect :( But the server detects it inbeforeConnect
. Is there any mistakes im doing?The text was updated successfully, but these errors were encountered: