Open hashg opened 9 years ago
@hashg you must use the SailsSocketAdapter
and in the sails part setup the config so that it works with.... sockets of course. badly I have not much time right now to check this but looking at your error it sounds like there is something misconfigured in the API part.
@hashg is this still a problem or can we close the issue?
@IanVS It is still a problem. I might be approaching it the wrong way. If you can point me to working sample, I can verify and close the issue.
I haven't used sockets myself, but I think you can look at https://github.com/jamemackson/example-sane-realtime for an example.
I have the same problem it seems sails.io.js is loaded but it wont connect, I never get the sails logo on the console (so its not connected).
if i use sails.io.js from bower it connects but it wont work either its so weird
I created another issue because it is not specifically to sockets but to csrf tokens, this is the reason why the adapter doesn't work https://github.com/sane/sane/issues/201
I was looking for Emberjs & Sails adapter, I found out this awesome project. This are the version
Setting up was a breeze. I created user and able to add new records easily.
//client/app/adapters/application.js
//client/app/controller/user.js
The issue is some how I am not able to see the magic of websocket, automatically updating on the other clients when I create a record on one of the clients.
I tried flipping the adapter to SailsSocketAdapter, SailsRESTAdapter. Both lead to this error in console.
Failing at first line of index.html
It is trying to read the server index.html from this code. //sails.io.js
@Globegitter / @huafu Am I doing anything wrong here? If you can point me to repo which has this working that also would help.