0.1.2 • Published 1 year ago

yrb-actioncable v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

yrb-actioncable

A WebSocket provider for Y.js that works with ActionCable

Installation

With npm:

npm install yrb-actioncable

With yarn:

yarn add yrb-actioncable --save

Usage

import {Doc} from "yjs";
import {WebsocketProvider} from "yrb-actioncable";

const document = new Doc();
const provider = new WebsocketProvider(
  document,
  consumer,
  "SyncChannel",
  {path: "issues/1"}
);