Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
angular-phoenix
Advanced tools
Provides angular bindings to Phoenix so we can run events within the digest loop.
I've also taken the liberty of Promisifying phoenix!
$ bower install --save angular-phoenix
Note: You must have the original phoenix.js
loaded prior to this
This is incomplete and only allows for a single socket connection per client
First we need to set our socket base url and add a global dependency.
angular.module('myApp', ['angular-phoenix'])
.config(['PhoenixProvider', PhoenixProvider => {
PhoenixProvider.setUrl('ws//localhost:9000/ws')
}])
Now were ready!!!
You can only join a channel once, if you provide a new message it will leave then rejoin the channel.
Just like normal phoenix we call Phoenix.join
however we also can take scope!
// $scope, eventName, message
Phoenix.join($scope, 'name', {})
.then(chann => {
// Now our callbacks will get removed on scope destruction
chann.on('message', handler)
})
Phoenix.join('name', {})
.then(chann => {
// We didn't pass scope these callbacks will always run
chann.on('message', hander)
})
Phoenix.leave('name')
Phoenix.base // Contains original Phoenix
Phoenix.socket // Contains your current socket
FAQs
Native bindings for phoenix in angular
The npm package angular-phoenix receives a total of 40 weekly downloads. As such, angular-phoenix popularity was classified as not popular.
We found that angular-phoenix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.