0.4.0 • Published 11 years ago

p2p-session-store v0.4.0

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

P2P Session Store

A simple peer-to-peer session store for connect and express

Installation

npm install p2p-session-store

Usage

In Express:

app.use(express.session({
  store: new P2PSessionStore({
    port: 7001,
    peers: [8001, 9001]
  }),
  secret: 'secret'
}));

Listening for session data on 7001 and will send session data to 8001 and 9001

API

new P2PSessionStore(options)

Creates a new instance

options

Some options

Issues

dnode depends on node-gyp, so in order to npm install on Windows, you'll need to follow the node-gyp Installation guide. Unix and Mac requires python and make so it should just work.

Quick links:

Credits

Thanks to substack as most of the work is being done by dnode

0.4.0

11 years ago

0.3.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago