added receive method

working example

https://gist.github.com/mbeale/7044836