working socket service with coffeeScript