Giter VIP home page Giter VIP logo

ng-stomp's People

Contributors

avcdata avatar beevelop avatar conteit avatar fedy2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ng-stomp's Issues

Update socksJS dependency

This nice library depends on a highly out-dated version of socksJS "sockjs": "0.3.4". The current version is 1.0.3.

For example, this nasty issue is present in the old sockjs library: sockjs/sockjs-client#305

PS: I just tested ng-stomp with sockjs 1.0.3 and all seems to work fine.

ng-bind has not updated the view

var subscription = $stomp.subscribe('/queue/' + user.id + '/interviews/1', function (payload, headers, response) {
console.log(headers)
console.log(response)
console.log(payload)

$scope.ss = 'sf'  // here !!!!!

}, {});

I update the variables in the callback, but the view has no update to reflect the change.

The connection has not been established yet error on console just after onclose event is triggred.

I am getting the following error on close in production
min-bower-20180201_224511-57e1187.js:136 Error: InvalidStateError: The connection has not been established yet
at d.send (min-bower-20180201_224511-57e1187.js:21168)
at b._transmit (min-bower-20180201_224511-57e1187.js:21169)
at b.disconnect (min-bower-20180201_224511-57e1187.js:21170)
at Object.disconnect (min-bower-20180201_224511-57e1187.js:21177)
at websocketService.disconnect (min-app-20180201_224511-57e1187.js:28986)
at min-app-20180201_224511-57e1187.js:28856
at m.$emit (min-bower-20180201_224511-57e1187.js:164)
at onClose (min-app-20180201_224511-57e1187.js:492)
at d.sock.onclose (min-app-20180201_224511-57e1187.js:499)
at d.c.dispatchEvent (min-bower-20180201_224511-57e1187.js:21168)

TypeError: Not a function

Just a minor bug found. When we minify and combine all our dependencies into one file, we found that we get an error saying 'Undefined is not a function', etc.

I believe all that needs to be done to fix this is to add '();' to the very end of the file.

heart-beat settings

how to set heart-beat value in headers ?
ex - headers ={ login:"",passcode:"",heart-beat:"20000,50000"}
not work for me.

Web-stomp issue in rabbitmq LTS

this.sock = new SockJS(endpoint, null, sockjsOpts)

Please update above new SockJS() to new WebSocket() because new rabbitmq version its not connected using new SockJS() and also update endpoint to ws://127.0.0.1:15674/ws

this.sock = new WebSocket(endpoint, null, sockjsOpts)

Uncaught SyntaxError while establishing the socket connection

Using "ng-stomp": "0.5.0" in my package.json file with the ng-stomp standalone via bower, I always get the following exception, Any solution?

Uncaught SyntaxError: JSON.parse
    at Object.function.JSON.parse.JSON.parse (ng-stomp.standalone.min.js:24)
    at c.XHRLocalObject.f.onfinish (ng-stomp.standalone.min.js:24)
    at c.XHRLocalObject.f.emit (ng-stomp.standalone.min.js:24)
    at XMLHttpRequest.g.xhr.onreadystatechange (ng-stomp.standalone.min.js:24)

Check if the errorCallback is defined

When an error occurs during the connection ng-stomp correctly reject the promise but also try to call the undefined function errorCallback (line 37). Before calling that function should be checked if it is defined or not.

How to do call ".then(..)" without ".connect(..)" ?

Hi,
I've got following simple scenario / problem:

On application start I call .connect(..) at global scope, because I just need a single Stomp Connection for the whole application.

At the same time Angular loads the first controller. And this controller needs to call .subscribe(..) and .send(..).

The problem is, that the connection takes some time to get established, but the controller code is running before .connect(..) has finished. And then It'll throw some Error.

In your example you use .connect(..).then(..), but of course that's not possible, when calling .connect(..) at global scope. Or is it possible to call .connect(..).then(..) multiple times without creating multiple connections?

So it would be really nice to have some callbacks from you library, so I can call .connect(..) somewhere at application start. And then do something like $stomp.onConnect(function(success) { if(success) { $stomp.subscribe(..) } }); or maybe use some promise for that.

Or maybe there's some other solution? Thank you!

add semicolon in ng-stomp.js file ; cause error while production

I am using this file and download using bower and it cause error in console and my project stopped working; after debugging for 5 hours I found that semicolon is missing in it's ng-stomp.js fie.

can you please add semicolon in end of the function or suggest me how do I use it and add semicolon while copying these JS file from gulp serve:dist

Is there anyway to use wss protocol?

I'm getting the "The URL's scheme must be either 'http:' or 'https:'. 'wss' is not allowed." error.

Is there anyway to use wss?

Thanks in advance.
Johan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.