ws-sf

1.2.2 • Public • Published

ws-sf: a scantradfrance websocket

ws-sf is a websocket module to get last chapters releases by the team ScantradFrance.

Installing

npm install ws-sf

yarn add ws-sf

Usage

const WsSf = require('ws-sf') // commonjs
import WsSf from 'ws-sf'

// connect to the websocket
const wssf = new WsSf('ws://localhost:3000')
wssf.connect()

// get new chapters in real-time
wssf.onrelease(release => {
  console.log(release)
});

Release object

{
  manga: {
    id [string]      // manga id
    name [string]    // manga name
    thumbnail [url]  // manga thumbnail
  }, 
  title [string]     // chapter title
  number [number]    // chapter number
}

License

ALV

Readme

Keywords

none

Package Sidebar

Install

npm i ws-sf

Weekly Downloads

2

Version

1.2.2

License

ALV

Unpacked Size

14.4 kB

Total Files

4

Last publish

Collaborators

  • dastan21