Open Faresalghazy opened 7 months ago
@Faresalghazy 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.
Hey @Faresalghazy can you tell me the versions of socket.io-client
and sails.io.js
?
Hi,
Last version of 'socket.io-client@4.X.X
use default path to /engine.io
And on last Sails version the default path is /socket.io
If you socket server is an Sails, you can set the sails.config.sockets.path
to /engine.io
Or you can change default path of socket.io-client to /socket.io
if you prefer.
And on your client you must have set :
socket.initialConnectionHeaders = { __sails_io_sdk_version: '1.2.1', __sails_io_sdk_platform: 'node', __sails_io_sdk_language: 'javascript' };
Hi, Last version of
'socket.io-client@4.X.X
use default path to/engine.io
And on last Sails version the default path is/socket.io
If you socket server is an Sails, you can set the
sails.config.sockets.path
to/engine.io
Or you can change default path of socket.io-client to/socket.io
if you prefer.And on your client you must have set :
socket.initialConnectionHeaders = { __sails_io_sdk_version: '1.2.1', __sails_io_sdk_platform: 'node', __sails_io_sdk_language: 'javascript' };
This resolved the issue on my end! Thanks!
Thanks @ImoucheG for sharing that solution. @eric-centrifuge I'm glad you are unblocked too.
@Faresalghazy does this resolve this issue for you too?
Node version: v20.9.0 Sails version (sails): 1.5.9 ORM hook version (sails-hook-orm): 4.0.2 Sockets hook version (sails-hook-sockets): 3.0.0 Organics hook version (sails-hook-organics): Skipper adapter & version (e.g. skipper-s3@5.55.5): 0.9.4
Very similar to issue #7104 Node Client Code:
Error:
Server code: All my console logs do not print, including the beforeConnect config./sockets.js
PriceFeedSocketController.js
helpers/add-to-socket-and-redis:
config/security.js