@copart/socket_server
A library to ease user tracking over socket
Last updated a year ago by gopalthannir .
Original npm · Tarball · package.json
$ cnpm install @copart/socket_server 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.2.13-beta                                ...           latest (a year ago)

13 Versions

  • 2.2.13-beta                                ...           a year ago
  • 2.2.12                                ...           2 years ago
  • 2.2.11                                ...           2 years ago
  • 2.2.10                                ...           2 years ago
  • 2.2.9                                ...           2 years ago
  • 2.2.8                                ...           2 years ago
  • 2.2.7                                ...           2 years ago
  • 2.2.6                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 17
Last Day 0
Last Week 13
Last Month 8
Dependencies (10)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |