beevelop / ng-stomp

:bookmark_tabs: STOMP for AngularJS
http://beevelop.github.io/stomp-ui/
MIT License
44 stars 43 forks source link

Uncaught TypeError: errorCallback is not a function #19

Closed cht8687 closed 7 years ago

cht8687 commented 7 years ago

I am experiencing this error when run unit test. (Karma, jasmine) Anyone have similar issue?

-----update------

It turns out that bower install seems have old source code.

cht8687 commented 7 years ago

Bower installation of 0.3.0 seems have the old source-code. It doesn't have this line:

 if (angular.isFunction(errorCallback)) {
          errorCallback(err)
        }

also the function has only 3 arguments:

     this.connect = function (endpoint, headers, errorCallback) {

Please help update it!

beevelop commented 7 years ago

The changes your describe had not been published yet. They should right now be available in v0.4.0.

cht8687 commented 7 years ago

thank you @beevelop