1.2.2 • Published 3 years ago

ws-sf v1.2.2

Weekly downloads
44
License
ALV
Repository
github
Last release
3 years ago

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

1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.0

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago