{"repo":"anycable/graphql-anycable","free":true,"listed":false,"github":"https://github.com/anycable/graphql-anycable","clone":"git clone https://github.com/anycable/graphql-anycable.git","description":"A drop-in replacement for GraphQL ActionCable subscriptions. Works with AnyCable.","language":"Ruby","stars":114,"topics":["anycable","graphql","hacktoberfest","rails","ruby"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQL subscriptions for AnyCable A (mostly) drop-in replacement for default ActionCable subscriptions adapter shipped with [graphql gem] but works with [AnyCable]! GraphQL-AnyCable is built by Evil Martians , an American design and engineering consultancy for developer tools, AI, and cybersecurity startups . Why? AnyCable is fast because it does not execute any Ruby code. But default subscription implementation shipped with [graphql gem] requires to do exactly that: re-evaluate GraphQL queries in Action Cable process. AnyCable doesn't support this (it's possible but hard to implement). See https://github.com/anycable/anycable-rails/issues/40 for more details and discussion. Differences - Subscription information is stored in a Redis database. By default, we use AnyCable Redis configuration. Expiration or data cleanup should be configured separately (see below). - GraphQL queries for all subscriptions are re-executed in the process that triggers event (it may be web server, async jobs, rake tasks or whatever) Compatibility - Works with Action Cable (e.g., in development/test) - Works without Rails (e.g., via [LiteCable][]) Installation Add this line to your application's Gemfile: And then execute: Usage 1. Plug it into the schema (replace the Action Cable adapter if you have one): 2. Execute a query within an Action Cable/LiteCable channel. Make sure that you're passing channel instance as channel key to the context. 3. Trigger events as usual: 4. (Optional) When using other","default_branch":null,"files":null,"tree":[],"storefront":"/r/anycable","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anycable/graphql-anycable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}