Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@copart/socket_server

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@copart/socket_server

A library to ease user tracking over socket

  • 2.2.9
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
7
Weekly downloads
 
Created
Source

Socket Server

A library to ease user tracking over socket

Custom Badge Version

Installation

npm install @copartit/socket_server

Usage

var app = require('express')();
var server = require('http').Server(app);

const PORT = process.env.PORT || 3000;

/* =========================================== */
const SocketServer = require('../src/index.js');
SocketServer.setup(server);
/* =========================================== */

server.listen(PORT, function () {
  console.log(`Listening On *:${PORT}`);
});

Run Demo

For Single Instance Server: nodemon ./test/index.js

Open localhost:3000 to test features

For Multi Instance Server: pm2 start && pm2 monit

Open localhost over 3000, 3001, 3002, 3003 ports to test functionality over multiple servers
To Stop Multiple Instance Server: pm2 delete all

FAQs

Package last updated on 26 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc