octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

Changes in Skynet Socket API? #63

Closed RickCarlino closed 10 years ago

RickCarlino commented 10 years ago

My project was working fine a few days ago. I started working on it today and noticed a new error in the console:

GET http://skynet.im:3000/socket.io/?EIO=2&transport=polling&t=1404824663344-8 net::ERR_CONNECTION_REFUSED socket.io.js:2815

Has the Skynet socket API changed recently? I couldn't see a version in the skynet.js file, but the MD5 is a02f460d437d44e12499cc8846cfbdd0 versus the one available on the Skynet homepage, which is c6c83d1706a96d0d95b6b26d827f75a7

chrismatthieu commented 10 years ago

We upgraded socket.io yesterday from 0.9.16 to 1.0.6. This update affected all skynet components including skynet.js, skynet npm, skynet OS, and the skynet hub. The API is not affected. Updating your software components should reconnect fine. Let us know if you have any issues...

RickCarlino commented 10 years ago

It looks like this one might be a local configuration issue. I did some manual testing outside of the application and was able to connect without the polling issues noted previously. I will report back when I figure out what's causing it to not work anymore.

topher-zz commented 10 years ago

If you are running our latest version of the SkyNet cloud, our config file has changed - https://github.com/skynetim/skynet/blob/master/config.js.sample

RickCarlino commented 10 years ago

OK- Fixed the issue. For those who are hitting the issue:

The API has completely changed. All of your old method calls are invalidated. Make sure you update any code that was making calls to the old library to reflect the new method calls and API.