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

Using AnyCable JS client #21

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Using AnyCable JS client #21

wants to merge 1 commit into from

Conversation

palkan
Copy link
Member

@palkan palkan commented Jul 23, 2021

Description

This PR demonstrates the usage if the @anycable/web JS library to communicate with the server. Read more.

Changes

  • Migrated from @rails/actioncable to @anycable/web
  • IMPORTANT Updated Babel/Browserlist configuration to support only modern browsers with ES6

Development notes

This PR also adds an ability to mount the source code of the anycable-client within a Docker env to make it possible to link it and use a local version.

For that, create a dip.override.yml file in the project's root with the following contents:

environment:
  ANYCABLE_CLIENT_PATH: "../anycable-client" # this should be the relative path to the source code

@palkan palkan added the demo Demo branch PR label Jul 23, 2021
@palkan palkan force-pushed the demo/anycable-client branch 2 times, most recently from a1de484 to 72c301d Compare July 24, 2021 07:07
@palkan palkan mentioned this pull request Sep 23, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo Demo branch PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant