A library to ease user tracking over socket


2.2.13-beta3 years ago3 years agoMinified + gzip package size for @copart/socket_server in KB


Socket Server

A library to ease user tracking over socket

Custom Badge Version


npm install @copartit/socket_server


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

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

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

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.