bendrucker / angular-sockjs Goto Github PK
View Code? Open in Web Editor NEWSockJS component for AngularJS
License: MIT License
SockJS component for AngularJS
License: MIT License
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
The socket.js file provided which is part of the bower install, if minified, will not function correctly. It results in an injection issue with an error in the browser console:
Error: [$injector:unpr] http://errors.angularjs.org/1.3.0-beta.13/$injector/unpr?p0=aProvider%20%3C-%20a%20%3C-ocketFactory%20%3C-%socket
To ensure that it's this file that is causing the issue, I linked to a unminified version help on a CDN and everything works fine.
Hi,
Previously installing from bower using ~0.0.1, but looks like you deleted the bower version or package?
Now, we get this from bower info angular-sockjs
:
{
name: 'angular-sockjs',
main: 'socket.js',
dependencies: {
angular: '>= 1 < 2'
},
devDependencies: {
'angular-mocks': '>= 1 < 2'
},
homepage: 'https://github.com/bendrucker/angular-sockjs'
}
Hey there,
Can't install specific versions of your package and getting an error from "bower info", see below:
$ bower info angular-sockjs
bower not-cached git://github.com/bendrucker/angular-sockjs.git#*
bower resolve git://github.com/bendrucker/angular-sockjs.git#*
bower checkout angular-sockjs#master
bower invalid-meta angular-sockjs is missing "ignore" entry in bower.json
bower resolved git://github.com/bendrucker/angular-sockjs.git#c4d0630443
{
name: 'angular-sockjs',
main: 'socket.js',
dependencies: {
angular: '>= 1 < 2'
},
devDependencies: {
'angular-mocks': '>= 1 < 2'
},
homepage: 'https://github.com/bendrucker/angular-sockjs'
}
No versions available.
Thanks
Is there any demo for the usage of this plugin?
If I use socketJs I have this,
// create socketJS instance
var s = new SockJS("/stomp")
// use stomp over socketJS
var client = Stomp.over(s)
// subscribe to topic
client.subscribe topic, callbackfunction
// send to broker
client.send broker, {}, JSON.stringify(obj)
Will this plugin allow me to encapsulate this logic?
can i send audio file with this module?
In the readme, the second example code block ("Building on the example above...") is the same instead of actually building on the example above, which would be neat.
From the doc/src it seems url is the only option which gets passed to sockjs constructor. Can we specify other options such as protocol whitelist?
I'll follow up with a pull-request if you think this is worthwhile
Hello,
Thanks for the great module. Can you help in the following query? What to do if sockjs got disconnected due to network failure. How can I reconnect to sockjs if the network becomes avalable after some time.
I am using your module in an cordova mobile app. I is working great!
Thanks & regards,
Abhishek
Hey @bendrucker, I had to run bower install angular-sockjs#v0.1
to actually install the latest version. Could you name the following versions tags only with numbers, without the 'v' prefix ('0.1' in this case), so bower could resolve the latest version automatically? (As of now, 0.0.1 is resolved as the latest version)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.