Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (86 sloc) 10.6 KB
{"nick":"zenocon","reason":"Ping timeout: 256 seconds","date":"2013-04-07T00:18:03.932Z","type":"quit"}
{"nick":"evangenieur","reason":"Remote host closed the connection","date":"2013-04-07T01:57:06.757Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T02:25:44.225Z","type":"join"}
{"nick":"liorix","reason":"Ping timeout: 245 seconds","date":"2013-04-07T02:30:02.252Z","type":"quit"}
{"nick":"evangenieur","date":"2013-04-07T03:09:17.930Z","type":"join"}
{"nick":"evangenieur","reason":"Ping timeout: 256 seconds","date":"2013-04-07T03:13:43.927Z","type":"quit"}
{"nick":"lluad","reason":"Quit: lluad","date":"2013-04-07T06:07:57.867Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T06:56:36.366Z","type":"join"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T09:02:29.138Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T09:03:01.290Z","type":"join"}
{"nick":"liorix","reason":"Read error: Operation timed out","date":"2013-04-07T09:06:24.652Z","type":"quit"}
{"nick":"evangenieur","date":"2013-04-07T11:51:48.911Z","type":"join"}
{"nick":"liorix","date":"2013-04-07T13:13:52.464Z","type":"join"}
{"nick":"liorix","reason":"Ping timeout: 264 seconds","date":"2013-04-07T13:18:12.429Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T14:18:31.838Z","type":"join"}
{"nick":"dennismartensson","reason":"Remote host closed the connection","date":"2013-04-07T15:15:08.300Z","type":"quit"}
{"nick":"dennismartensson","date":"2013-04-07T15:15:42.619Z","type":"join"}
{"nick":"dennismartensson","reason":"Remote host closed the connection","date":"2013-04-07T15:16:06.866Z","type":"quit"}
{"nick":"dennismartensson","date":"2013-04-07T15:16:22.069Z","type":"join"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T15:38:11.077Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T15:38:43.973Z","type":"join"}
{"nick":"liorix","reason":"Ping timeout: 256 seconds","date":"2013-04-07T15:42:55.485Z","type":"quit"}
{"nick":"zenocon","date":"2013-04-07T15:57:41.376Z","type":"join"}
{"nick":"liorix","date":"2013-04-07T15:58:38.893Z","type":"join"}
{"nick":"lluad","date":"2013-04-07T16:08:04.164Z","type":"join"}
{"nick":"zenocon","reason":"Remote host closed the connection","date":"2013-04-07T16:15:33.297Z","type":"quit"}
{"nick":"zenocon","date":"2013-04-07T16:16:58.897Z","type":"join"}
{"nick":"zenocon","reason":"Remote host closed the connection","date":"2013-04-07T16:41:34.860Z","type":"quit"}
{"nick":"avnerus","date":"2013-04-07T17:50:28.324Z","type":"join"}
{"nick":"avnerus","message":"Hello! I've just started developing with SocketStream/Angular.js and it's a lot of fun. I have some problem though. Can anyone help?","date":"2013-04-07T18:08:22.537Z","type":"message"}
{"nick":"zenocon","date":"2013-04-07T18:12:27.652Z","type":"join"}
{"nick":"avnerus","reason":"Remote host closed the connection","date":"2013-04-07T18:40:23.360Z","type":"quit"}
{"nick":"zenocon","reason":"Remote host closed the connection","date":"2013-04-07T19:56:40.142Z","type":"quit"}
{"nick":"zenocon","date":"2013-04-07T20:27:08.923Z","type":"join"}
{"nick":"zenocon","reason":"Ping timeout: 256 seconds","date":"2013-04-07T20:35:49.899Z","type":"quit"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T20:39:10.086Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T20:39:43.218Z","type":"join"}
{"nick":"liorix","reason":"Ping timeout: 245 seconds","date":"2013-04-07T20:43:47.135Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T20:50:39.372Z","type":"join"}
{"nick":"avnerus","date":"2013-04-07T21:08:02.296Z","type":"join"}
{"nick":"avnerus","message":"hello again, anyone here for a quick socketstream question?","date":"2013-04-07T21:10:29.062Z","type":"message"}
{"nick":"owenb","message":"hey","date":"2013-04-07T21:11:38.638Z","type":"message"}
{"nick":"owenb","message":"what's up?","date":"2013-04-07T21:11:45.941Z","type":"message"}
{"nick":"avnerus","message":"oh hi owen. All is well. I've started experimenting with ss+Angular.js a few days ago and I really like it","date":"2013-04-07T21:12:41.632Z","type":"message"}
{"nick":"avnerus","message":"Looking forward to v0.4 but in the mean time I'm using 0.3. I'm having this issue that makes me thing I'm probably doing something wrong because I haven't found any documentation about it","date":"2013-04-07T21:13:52.518Z","type":"message"}
{"nick":"avnerus","message":"Using angular.js, I'm running an rpc call to my server the moment the controller is loaded. The problem is that it seems the ss interface is not ready and the rpc call is just ignored.","date":"2013-04-07T21:15:16.751Z","type":"message"}
{"nick":"avnerus","message":"I've tried waiting for the server to be ready using ss.server.on('ready') and then it worked","date":"2013-04-07T21:15:39.845Z","type":"message"}
{"nick":"avnerus","message":"but I don't know if that's a good solution because this is a controller which may or may not be loaded as the first thing in the session. For example if I'm not logged in it would be loaded only after ss is ready","date":"2013-04-07T21:16:23.422Z","type":"message"}
{"nick":"avnerus","message":"(because I login first and only then access that controller)","date":"2013-04-07T21:16:42.358Z","type":"message"}
{"nick":"owenb","message":"hey, sorry, i got called away","date":"2013-04-07T21:46:07.260Z","type":"message"}
{"nick":"owenb","message":"just reading now","date":"2013-04-07T21:46:09.188Z","type":"message"}
{"nick":"owenb","message":"ok i understand the problem","date":"2013-04-07T21:47:50.101Z","type":"message"}
{"nick":"owenb","message":"normally the best thing to do is put all your angular controllers outside of SS, but then call a command in one of them to init() your app once the connection has been started","date":"2013-04-07T21:48:35.818Z","type":"message"}
{"nick":"owenb","message":"regardless of whether or not the user has logged in","date":"2013-04-07T21:48:45.284Z","type":"message"}
{"nick":"avnerus","message":"hmm I see..but then how would the other controllers wait for that init() before loading?","date":"2013-04-07T21:50:47.711Z","type":"message"}
{"nick":"owenb","message":"they can still load, but they shouldn't call any ss.rpc() methods until they have the OK to do so","date":"2013-04-07T21:51:09.659Z","type":"message"}
{"nick":"avnerus","message":"I see. so you mean I should use some kind of internal event. Is there any standard way in javascript to do such a thing? something like 'if the app is not ready yet, wait for init'","date":"2013-04-07T21:52:24.497Z","type":"message"}
{"nick":"owenb","message":"not really. it's about the connection being up and open, rather than the app being ready as such","date":"2013-04-07T22:00:20.317Z","type":"message"}
{"nick":"owenb","message":"btw i'm hoping for a much smoother SocketStream + Angular integration in the near future","date":"2013-04-07T22:00:47.473Z","type":"message"}
{"nick":"owenb","message":"with plenty of demo apps","date":"2013-04-07T22:00:49.967Z","type":"message"}
{"nick":"owenb","message":"just taking one step at a time. need to finish the core server first","date":"2013-04-07T22:00:59.704Z","type":"message"}
{"nick":"avnerus","message":"yeah don't rush it :) how about since ss-angular is already encapsulating rpc, I can add there that if app is not loaded (some global var) it will wait for ss.server.on('ready') and only then fire the rpc?","date":"2013-04-07T22:02:17.250Z","type":"message"}
{"nick":"owenb","message":"well basically something must always make the first call the server. typically this will be to see if a user is logged in","date":"2013-04-07T22:04:50.970Z","type":"message"}
{"nick":"owenb","message":"all you need to do is disable your app (hide a div etc) until that first call is made","date":"2013-04-07T22:05:08.790Z","type":"message"}
{"nick":"owenb","message":"and only make the first call when the ready event fires","date":"2013-04-07T22:05:24.247Z","type":"message"}
{"nick":"avnerus","message":"ah yes I already do that actually. only that it loads simultaneously with the other contoller. hmm yeah I guess I should just that the app at something like /sessionCheck and then redirect to / once all is good","date":"2013-04-07T22:08:50.696Z","type":"message"}
{"nick":"avnerus","message":"*start the app at","date":"2013-04-07T22:09:09.420Z","type":"message"}
{"nick":"avnerus","message":"ss-angular is built in such a way that you append an [auth] module to your controller and once it loads it makes the login check. so I guess I should just have a separate controller for the initialization and not append it to my main controller","date":"2013-04-07T22:11:06.510Z","type":"message"}
{"nick":"owenb","message":"yes indeed. that should help","date":"2013-04-07T22:17:03.120Z","type":"message"}
{"nick":"owenb","message":"sorry it's all a bit unclear and like the wild west at the moment. it will get better for sure","date":"2013-04-07T22:17:21.730Z","type":"message"}
{"nick":"avnerus","message":"it's ok. I'm happy to be at the beginning of a new generation of web apps :)","date":"2013-04-07T22:18:00.662Z","type":"message"}
{"nick":"avnerus","message":"We have considered using Derby or Meteor but each had its own problems which made it too risky. With socketstream we can still use proven technologies and backed projects like Angular.js and still achieve a real time app","date":"2013-04-07T22:19:48.678Z","type":"message"}
{"nick":"avnerus","message":"ok I'm afraid have to go. Thanks for help! I will probably be visiting with some more questions in the near future. gn","date":"2013-04-07T22:26:34.657Z","type":"message"}
{"nick":"avnerus","reason":"Quit: Leaving","date":"2013-04-07T22:26:42.340Z","type":"quit"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T22:39:26.275Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T22:40:01.067Z","type":"join"}
{"nick":"liorix","reason":"Read error: Connection reset by peer","date":"2013-04-07T22:42:09.162Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T22:42:16.446Z","type":"join"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T23:13:09.166Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T23:13:43.526Z","type":"join"}
{"nick":"liorix","reason":"Ping timeout: 264 seconds","date":"2013-04-07T23:18:12.490Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T23:36:07.859Z","type":"join"}
{"nick":"liorix","reason":"Remote host closed the connection","date":"2013-04-07T23:56:47.988Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T23:57:21.080Z","type":"join"}
{"nick":"liorix","reason":"Read error: Connection reset by peer","date":"2013-04-07T23:57:33.372Z","type":"quit"}
{"nick":"liorix","date":"2013-04-07T23:58:05.991Z","type":"join"}