Evan Sharp

Results 116 comments of Evan Sharp

1.x is a wrapper for the sails.io client and as noted in the read me you can refer to the [sails socket documention](http://sailsjs.org/documentation/reference/web-sockets/socket-client) for the API. That documentation at least...

See the usage section of the readme, the module name is `ngSails` ``` var app = angular.module("MyApp", ['ngSails']); ```

We are trying to update everything to work with the new sails.io.js abilities while still working for older sails.io.js. Headers is one of the things that is involved with this....

That will not work because angular-sails uses sails.io.js. sails.io.js will just ignore the headers when it makes the actual call. See: https://github.com/balderdashy/sails.io.js/blob/master/sails.io.js#L725

headers (and thus setting the auth header) is on the roadmap for [2.0](https://github.com/janpantel/angular-sails/tree/2.0) which is not 100% ready(the build is passing and what is there works, but not feature complete),...

I was going to mention [beta release of 2.0](https://github.com/janpantel/angular-sails/releases/tag/2.0.0-beta.1) and say that it has default headers... but it has been a while since I made it and looking at it...

So... there is now [2.0 beta 2](https://github.com/janpantel/angular-sails/releases/tag/2.0.0-beta.2) release. It has default headers abilities similar to how angular's `$http` works, just use `$sailsProvider` instead of `$httpProvider` (i.e. `$sailsProvider.defaults.headers.get = {'my-header': 'some...

@snowcxt not sure what you mean. Something like "use the headers set in `$httpProvider.default.headers` when making `$sails` calls? So it would be something like `finalHeadersSent`

It is. You can pass headers in the config and they will be merged into the defaults. Current it is set up to do something like: `finalHeadersSent`