00:02:22  * prbcquit (Ping timeout: 240 seconds)
00:16:13  * tripwirequit (Ping timeout: 260 seconds)
00:40:38  * prbc_quit (Remote host closed the connection)
00:56:51  * AR45joined
01:07:22  * prbcjoined
01:36:12  * AR45quit (Ping timeout: 246 seconds)
01:47:54  * AR45joined
02:23:10  * AR45quit (Quit: Konversation terminated!)
02:24:10  * climbup1joined
02:31:46  * climbup1quit (Quit: Leaving.)
02:32:10  * climbup1joined
02:32:34  * AR45joined
02:39:16  * climbup1quit (Quit: Leaving.)
02:50:24  * climbupjoined
02:53:47  * AR45quit (Remote host closed the connection)
02:55:13  <climbup>would someone help me to understand a detail of the route-separation example in the express codebase? https://github.com/strongloop/express/tree/master/examples/route-separation
02:55:38  <climbup>specifically: i don't understand how the user is saved after the user.update route fires
02:55:54  <climbup>^ https://github.com/strongloop/express/blob/master/examples/route-separation/user.js#L38
02:56:32  <climbup>running the example, i can see that it does... i just don't understand by what mechanism that users array is updated, if any
03:00:52  <prbc>How can I pass a parameter to routes in express 4?
03:01:05  <prbc>to the routes.js file
03:02:08  <climbup>prbc: is this what you're looking for? http://expressjs.com/api.html#app.param
03:03:04  <climbup>it seems like you tokenize the parameter app.get("/users/:foo",...) in your route string and then it's present in the handler as req.params.foo
03:03:47  <prbc>no
03:03:52  <prbc>my problem is
03:04:55  <prbc>im trying to use socket.io in my project, now, I can receive and send messages in the app.js file. However I want to emit a message from inside my controller function
03:05:31  <prbc>But I dont have the socket/io object there, so I think I should pass it through the routes.js file, but it's not there too
03:06:12  <prbc>if I try to pass it with var routes = require('./server/routes')(io) I got an error from express routes
03:06:46  <climbup>it seems like some of your explanation presumes i understand how your project is structured; i don't!
03:06:59  <prbc>ahhaah
03:07:01  <climbup>i'm a fair newb at express... i thought your issue might be a gimmie
03:07:46  <climbup>can haz source?
03:07:59  <prbc>I have an app.js file, a routes.js file with the routes, and a file with a controller, no matter how they`re organized in folders
03:08:38  <prbc>I just want to use socket from my controller
03:08:59  <prbc>All examples that I found at google are using in the app.js
03:09:32  <climbup>wherever socket.io is instantiated and populated, you've got to pass that through to whatever handler needs it; or more appropriately, pass exactly what the controller will need as objects in the request
03:14:27  <climbup>prbc: per http://socket.io/docs/# , it looks like the io object is available on the client side, if it's wired into the Express application
03:14:49  <prbc>I solved it, thanks
03:14:56  <climbup>what was your solution?
03:15:36  <prbc>I'm new to all these things, so I was folllowing a project structure that I found in the internet
03:15:43  <prbc>in my routes.js file
03:15:57  <prbc>I had somehting like this module.exports = router;
03:16:13  <prbc>router was an object, express.router()
03:16:22  <prbc>So I couldnt pass parameters to that
03:16:27  * delvinjquit (Quit: it's the end)
03:16:45  <prbc>I just put it inside a function module.exports = function(socket) {
03:17:06  <prbc>:D
03:17:14  <climbup>ahh, thanks =)
03:17:51  <climbup>and now you can access your socket from within your router function?
03:33:49  <prbc>yeah
03:34:13  <prbc>And consequently I can pass it to my controllers
03:35:01  <prbc> router.post('/send', function(req, res) {
03:35:02  <prbc> Controller.index(req, res, socket)
03:35:02  <prbc> })
03:38:53  <climbup>cool! thanks prbc =)
03:44:54  * climbupchanged nick to zz_climbup
03:51:53  * zz_climbupchanged nick to climbup
05:05:23  * prbcquit (Remote host closed the connection)
05:06:00  * prbcjoined
05:10:36  * prbcquit (Ping timeout: 260 seconds)
05:16:33  * BigBangUDRjoined
06:06:19  * prbcjoined
06:10:37  * prbcquit (Ping timeout: 245 seconds)
06:28:54  * stream7joined
06:48:45  * stream7quit
06:49:00  * stream7joined
07:07:11  * prbcjoined
07:12:17  * prbcquit (Ping timeout: 272 seconds)
07:58:33  * dainbrainquit (Quit: dainbrain)
09:18:57  * BigBangUDRquit (Ping timeout: 260 seconds)
10:23:53  * stream7quit (Remote host closed the connection)
10:29:28  * stream7joined
10:46:17  * stream7quit (Remote host closed the connection)
10:51:14  * stream7_joined
13:26:42  * delvinjjoined
14:25:30  * stream7_quit (Remote host closed the connection)
15:08:15  * BigBangUDRjoined
15:08:20  * BigBangUDRquit (Client Quit)
15:17:30  * stream7joined
16:16:50  * dainbrainjoined
16:18:07  * climbupchanged nick to zz_climbup
16:21:37  * zz_climbupchanged nick to climbup
16:43:56  * climbupchanged nick to zz_climbup
17:06:45  * zz_climbupchanged nick to climbup
17:38:12  * stream7quit (Remote host closed the connection)
17:39:10  * stream7joined
18:52:53  * prbcjoined
18:55:00  * stream7quit (Remote host closed the connection)
19:12:44  * prbcquit (Remote host closed the connection)
19:21:46  * prbcjoined
19:36:26  * nveselinovjoined
20:09:20  * stream7joined
20:09:44  * stream7quit (Read error: Connection reset by peer)
20:10:12  * stream7joined
20:10:32  * stream7quit (Read error: Connection reset by peer)
20:10:53  * stream7joined
20:19:21  * stream7quit (Remote host closed the connection)
20:21:26  * stream7joined
20:57:49  * stream7quit (Remote host closed the connection)
21:31:19  * stream7joined
22:19:05  * prbcquit (Remote host closed the connection)
22:22:39  * prbc_joined
22:23:41  * stream7quit (Remote host closed the connection)