mongoose = require \'mongoose\' class Locations constructor: @(host, port) -> @db = new mongoose \'locations\', new Server(host, port, {auto_reconnect: true}, {})
I\'m developing a multiplayer game in NodeJS with NowJS, the thing is when more than 5 clients are connected it starts to take more time:
i have just started learning node and i am using node-v0.4.11 on Fedora 12. It installed without any errors and i am able to run some basic programs but there are some things i cant figure out
I am using socket.io in nodejs and I am able to send data from client to server. But when I emit from server, the client does not seem to be receiving this...
As per this question: node.js image compression I\'m trying to r开发者_JS百科un pulverizer in node.js, in code.
myModule.search location, item, (err, data) -> if err? res.end \'Error!\' else res.write \'got here\' partial \'partials/table\', {i开发者_如何转开发tems: data, layout: false}
I am using node js with express. Now i need to perform an common action for all requests ex. cookie checking
Easiest to explain wi开发者_如何学Cth code: ##### module.js var count, incCount, setCount, showCount;
I am using readDirSync to get the files from a Diretory. PLease find the code and error as following.
I have a field in mongodb that\'s a string. {\"field\": \"some text\"}, I want to convert them all into arrays. {\"field\": [\"some text\"]}