Socket
Book a DemoInstallSign in
Socket

@copart/socket_server

Package Overview
Dependencies
Maintainers
8
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@copart/socket_server

A library to ease user tracking over socket

2.2.13-beta
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
8
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 11 Feb 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.