You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I mount my ActionCable app as such:
mount ActionCable.server => "/socket(/:channel/:resource_id)"
That's an interesting example (haven't thought about it, tbh); beware, that it relies on Rails router to populate the params and won't work if you decide to run Action Cable in a standalone mode.
If I mount my ActionCable app as such:
mount ActionCable.server => "/socket(/:channel/:resource_id)"
My connection objects receive and have access to
request.params[:channel]
andrequest.params[:resource_id]
much as I would expect.If I then write a test to verify the behavior of my
Connection
class' authentication logicexpect { connect "/socket/somechannel/somebogusid" }.to have_rejected_connection
My
Connection
class receives empty params in theRequest
object. This basically means I cannot test anything I need to.Am I missing something or is this a legitimate deficiency of this library?
The text was updated successfully, but these errors were encountered: