Change Request Headers for WS protocol

1

I have an Ionic app that uses a Ruby on Rails API. To authenticate, I'm using the Devise and tiddle gems where I step through the AngularJs interceptor X-USER-EMAIL > and X-USER-TOKEN in Request Header There is a part of the application that I use gem websocket-rails to perform some actions on real-time . But for this to work I need the logged in user and the angle interceptor does not pass these headers because it is a WS request and not HTTP . What do I need to be authenticated when using the websocket?

    
asked by anonymous 10.02.2016 / 17:43

0 answers