A WebSocket provider for Y.js that works with ActionCable
With npm:
npm install yrb-actioncable
With yarn:
yarn add yrb-actioncable --save
import {Doc} from "yjs";
import {WebsocketProvider} from "yrb-actioncable";
const document = new Doc();
const provider = new WebsocketProvider(
document,
consumer,
"SyncChannel",
{path: "issues/1"}
);