balderdashy / sails.io.js

Browser SDK for communicating w/ Sails via sockets
https://sailsjs.com/documentation/reference/web-sockets/socket-client
183 stars 118 forks source link

Wrong env stored in `io.sails.environment` #36

Closed askmike closed 9 years ago

askmike commented 9 years ago

Sails supports custom environments and will set sails.config.environment accordingly. However this lib will try to determine the environment (either development or production) based on whether the script src contains min or production. We do need the correct env in our frontend code.


Our current workaround is a custom API call.

sailsbot commented 9 years ago

Thanks for posting, @askmike. I'm a repo bot-- nice to meet you!

It has been 30 days since there have been any updates or new comments on this page. If this issue has been resolved, feel free to disregard the rest of this message. On the other hand, if you are still waiting on a patch, please:

Thanks so much for your help!

askmike commented 9 years ago

This hasn't been fixed yet.