nodexchange
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "nodexchange", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "node library for scaling and load balancing servers", | ||
@@ -5,0 +5,0 @@ "main": "nodelb.js", |
# Installation | ||
``` | ||
$ npm install nodelb | ||
$ npm install nodexchange | ||
``` | ||
@@ -36,3 +36,3 @@ | ||
```javascript | ||
const lb = require(‘nodelb’); | ||
const lb = require(‘nodexchange’); | ||
``` | ||
@@ -85,9 +85,9 @@ | ||
* [Websocket Deploy Section](https://github.com/DataHiveDJW/nodeLB/blob/master/README.md#websockets-setup) | ||
* [Websocket Deploy Section](https://github.com/DataHiveDJW/nodexchange/blob/master/README.md#websockets-setup) | ||
* [Error Log Deploy Section](https://github.com/DataHiveDJW/nodeLB/blob/master/README.md#error-log-setup) | ||
* [Error Log Deploy Section](https://github.com/DataHiveDJW/nodexchange/blob/master/README.md#error-log-setup) | ||
* [Redis Deploy Section](https://github.com/DataHiveDJW/nodeLB/blob/master/README.md#redis-sessions-setup) | ||
* [Redis Deploy Section](https://github.com/DataHiveDJW/nodexchange/blob/master/README.md#redis-sessions-setup) | ||
* [Multi-Threading Deploy Section](https://github.com/DataHiveDJW/nodeLB/blob/master/README.md#threads-setup) | ||
* [Multi-Threading Deploy Section](https://github.com/DataHiveDJW/nodexchange/blob/master/README.md#threads-setup) | ||
@@ -288,3 +288,3 @@ ## rp.addOptions ( options ) — | ||
# Redis Sessions Setup | ||
NodeLB comes packaged with a lightweight controller to store and read session data from a Redis server, providing a central session data store between multiple target servers. | ||
Nodexchange comes packaged with a lightweight controller to store and read session data from a Redis server, providing a central session data store between multiple target servers. | ||
@@ -296,2 +296,3 @@ A Redis server must be setup as a prerequisite to utilizing the Redis Sessions object on the target server. | ||
```javascript | ||
const lb = require(‘nodexchange’); | ||
const options = { | ||
@@ -302,3 +303,2 @@ host: '127.0.0.1', // —> string hostname or IP address | ||
const lb = require(‘nodelb’); | ||
const rs = lb.deploy(‘redis’, options); | ||
@@ -359,3 +359,3 @@ ``` | ||
```javascript | ||
const lb = require('nodelb'); | ||
const lb = require('nodexchange'); | ||
const threads = lb.deploy(‘threads’); | ||
@@ -362,0 +362,0 @@ |
37239