New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ro-poller

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ro-poller

ro-poller creates a stable connection between a ROBLOX server and a nodejs application

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

RO-POLLER

Install

npm install ro-poller --save

Usage

var router = require('express').Router()
var roPoller = require('ro-poller')

var manager = new roPoller({ // defaults
  identify: function (req) {
    return req.headers['identity']
  },
  timeout: 1000 * 60 * 1, // 1 minutes,
  timeoutCheck: 1000 * 60, // check every 60 seconds
})

router.use((req, res, next) => { // roblox user-agent check
  if (safetyCheck === false) return next()

  if (
    req.headers['user-agent'] !== 'Roblox/WinInet' ||
    req.headers['roblox-id'] === undefined
    ) return res.sendStatus(401);
    
  next()
})

router.post('/create', manager.check(), manager.create())

router.post('/payload', manager.check(), manager.payload())

module.exports = router

/*
  manager.connections is a Collection of connections which are indexed by identity
*/

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts