Created
September 25, 2011 23:09
-
-
Save zuk/1241299 to your computer and use it in GitHub Desktop.
Sleepy Mongoose example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| observations = $().sleepyMongo({sleepyUrl: WallCology.mongooseURL + "/observations/") | |
| observations.find({}, function(data) { | |
| // do stuff | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WallCology = { | |
| rollcallURL: '/rollcall', | |
| mongooseURL: '/mongoose', | |
| xmppDomain: 'glint', | |
| groupchatRoom: null, | |
| init: function() { | |
| // .... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment