Change Request Headers to WS protocol

Asked

Viewed 64 times

1

I have an app Ionic using an API Ruby on Rails. To authenticate, I am using Gems Devise and tiddle where I pass via the Angularjs X-USER-EMAIL and X-USER-TOKEN in the Request Header Have a part of the application I use at Gem websocket-Rails to perform some actions in real-time. But for this to work accurate from the logged-in user and the angular Interceptor does not pass these headers because it is a request WS and not HTTP. What to do to be authenticated when using websocket?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.