wilk / ng-websocket

AngularJS HTML5 WebSocket powerful library
MIT License
267 stars 78 forks source link

Use $timeout #9

Open nate250 opened 9 years ago

nate250 commented 9 years ago

I tweaked the ng-websocket guts to use $interval and $timeout. This should allow for smoother unit testing - both for ng-websocket itself (as demonstrated) and for projects that use it.

wilk commented 9 years ago

Hi @nate250 and thanks for contributing! Let me ask you just a question: https://github.com/wilk/ng-websocket/pull/9#discussion_r21797639