ws-sf
v1.2.2
Published
A websocket module to get last chapters releases from https://scantrad.net by the team ScantradFrance.
Downloads
13
Readme
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
}