broken up into multiple files
websockets in an angularjs service now