Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a separate action cable server for hotwire-spark #37

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

jorgemanrubia
Copy link
Member

@jorgemanrubia jorgemanrubia commented Dec 20, 2024

This will isolate the hotwire-spark connection from the connection used by the host app, which most likely will be authenticated. This fixes the problem where hotwire-spark doesn't work with unauthenticated connections.

Fixes #19

This also lets us remove lots of complexity for the system monkeypatching the cable server to prevent restarts, since we don't want those when code reloads in development.

@jorgemanrubia jorgemanrubia force-pushed the isolated-ac-server branch 3 times, most recently from 24693c2 to 1aef8bd Compare December 21, 2024 11:48
This will isolate the connection from hotwire-spark from the connection
used by the host app, which most likely will be authenticated. This fixes
the problem where hotwire-spark doesn't work with unauthenticated connections.

Fixes #19

This also lets us remove lots of complexity for the system monkeypatching
the cable server to prevent restarts, since we don't want those when code reloads
in development.
@jorgemanrubia jorgemanrubia merged commit dda1b6e into main Dec 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Not working with unauthenticated action cable connections
1 participant