minimalistic websockets wrapper for angularjs