0.2.1 • Published 1 year ago

@y-rb/actioncable v0.2.1

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 @y-rb/actioncable

With yarn:

yarn add @y-rb/actioncable --save

Usage

import {Doc} from "yjs";
import {WebsocketProvider} from "@y-rb/actioncable";
import {createConsumer} from "@rails/actioncable";

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

1 year ago

0.2.0

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago