I am using the React Native Cookies library to set a cookie on the front-end. I noticed that my Axios client automatically detects and attaches the cookie to all request that occur after the cookie has been set.
Now I need to also attach the cookie to my WebSocket connection which uses @rails/actioncable. I was hoping that it would work out of the box similarly to Axios, however, that doesn’t seem to be the case. I scoured the documentation but couldn’t find anything regarding this, which makes me think it’s either very simple or impossible with @rails/actioncable.