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?