clerk / clerk-sdk-ruby

Access the Clerk Backend API from Ruby
MIT License
24 stars 10 forks source link

ActionCable Issue #36

Open iSarCasm opened 11 months ago

iSarCasm commented 11 months ago

Something prevents ActionCable from working well with clerk-sdk-ruby gem.

This config worked for me as a temporary workaround. Otherwise, web socket connections fail without any errors in the logs. It's unclear how I would go about identifying users in WS connections without digging into gem's source code.

Clerk.configure do |c|
  c.excluded_routes = ['/cable']
end

To test this you can simply create a blank new Rails 7 project with some turbo_frame_tag and a gem "clerk-sdk-ruby" and see that WS connections fail

jenswilms commented 5 months ago

You are my hero - I spent 3 hours trying to figure out why all over sudden my action cables didn't work