messenger.js
messenger.js copied to clipboard
Fix for issue #3
If a request is executed before a connection exists, save this temporarily and send it after a connection has been established.
feels like a pretty big fail in the library that it doesn't either:
- let the client know when a connect happens
- buffer any shout/requests internally in speaker.js until it has
asking us to do a settimeout or other hacks is silly.
I've found a better module: axon (https://github.com/visionmedia/axon). I've not tested it yet, but the docs are looking very nice.