2.0.2 • Published 10 years ago
mongio v2.0.2
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 :
io.on 'connection',(socket)->
require('mongio')(socket,address)
##no need to do this ... like always is your choice.
io.of('/collurlname').on 'connection',(socket)-> require('mongio')(socket,address)
- pass the socket
- address = ipaddress of your db
require('mongio')(socket,'127.0.0.1')