@y-rb/actioncable
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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"}
);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.1570latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.1570
0.2.00
0.1.512
0.1.40
0.1.30
0.1.20

Package Sidebar

Install

npm i @y-rb/actioncable

Weekly Downloads

562

Version

0.2.1

License

MIT

Unpacked Size

101 kB

Total Files

16

Last publish

Collaborators

  • gitlab-bot
  • eliias