Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
/ ws-sf Public archive

A websocket module to get last chapters releases from https://scantrad.net by the team ScantradFrance.

License

Notifications You must be signed in to change notification settings

ScantradFrance/ws-sf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A websocket module to get last chapters releases from https://scantrad.net by the team ScantradFrance.

Resources

License

Stars

Watchers

Forks

Packages

No packages published