mongio
wrapper for promised-mongo, and socket.io.
Re-Check update,save,remove,find,findOne,chkpasswd
Install
npm install mongio
How To Use
add the client version mongio-client. and you are ready to run!
require inside your socket.io definition :
ioon 'connection'require'mongio'socketaddress
no need to do this ... like always is your choice.
ioof'/coolurlname'on 'connection' require'mongio'socketaddress
- pass the socket
- address = ipaddress of your db
require'mongio'socket'127.0.0.1'