Skip to content

conor-mac-aoidh/socket.io-couchdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

socket.io-couchdb

A plugin for socket.io using couchdb as a storage backend. Based on the socket.io-redis adapter.

How to use

var io = require('socket.io')(3000);
var couchdb = require('socket.io-couchdb');
io.adapter(couchdb({ host: 'localhost', port: 5984, db : 'socket.io', encode : true }));

By running socket.io with the socket.io-couchdb adapter you can run multiple socket.io instances in different processes or servers that can all broadcast and emit events to and from each other.

If you need to emit events to socket.io instances from a non-socket.io process, you should use socket.io-couchdb-emitter.

About

A socket.io adapter/plugin using couchdb as a storage backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published