Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sorare/actioncable

Package Overview
Dependencies
Maintainers
16
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sorare/actioncable

WebSocket/ActionCable client for Sorare

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
16
Created
Source

JavaScript WebSocket Client for Sorare

@sorare/actioncable

WebSocket/ActionCable client for Sorare.

Getting Started

npm install @sorare/actioncable --save

const { ActionCable } = require('@sorare/actioncable');

const cable = new ActionCable({
  url: 'wss://ws.sorare.com/cable',
  headers: {
    // 'Authorization': `Bearer <YourJWTorOAuthToken>`,
    // 'APIKEY': '<YourOptionalAPIKey>'
  },
});

cable.subscribe('aCardWasUpdated { id }', {
  connected() {
    console.log('connected');
  },

  disconnected() {
    console.log('disconnected');
  },

  rejected() {
    console.log('rejected');
  },

  received(data) {
    console.log('received');
    console.log(data);
  },
});

License

@sorare/actioncable is MIT licensed. Credits to ZackMattor/actioncable-nodejs for the initial work.

FAQs

Package last updated on 11 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc