ws-sf is a websocket module to get last chapters releases by the team ScantradFrance.
npm install ws-sf
yarn add ws-sf
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)
});
{
manga: {
id [string] // manga id
name [string] // manga name
thumbnail [url] // manga thumbnail
},
title [string] // chapter title
number [number] // chapter number
}