Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-phoenix

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-phoenix - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

bower.json
{
"name": "angular-phoenix",
"version": "0.2.3",
"version": "0.2.4",
"authors": [

@@ -5,0 +5,0 @@ "MikaAK <mikakalathil@gmail.com>"

@@ -93,3 +93,3 @@ 'use strict';

this.$get = ['PhoenixBase', function (PhoenixBase) {
this.$get = ['$q', 'PhoenixBase', function ($q, PhoenixBase) {
var socket = new PhoenixBase.Socket(urlBase),

@@ -112,3 +112,3 @@ channels = new Map(),

promise = new Promise(joinRes);
promise = new $q(joinRes);

@@ -115,0 +115,0 @@ promise.then(function () {

{
"name": "angular-phoenix",
"version": "0.2.3",
"version": "0.2.4",
"description": "Native bindings for phoenix in angular",

@@ -5,0 +5,0 @@ "main": "dist/angular-phoenix.js",

@@ -63,2 +63,17 @@ Angular Phoenix

})
// In the controller
_setupSocket() {
this.chatChannel.on(this.$, 'new:message', (message) => {
this.messages.push(message)
})
// Alternatively with no resolve
Phoenix.join('chatRoom')
.after(5000, () => console.warn('it didn\'t work'))
// This is the same as just passing in "ok" and a callback
.receive((message) => {
this.message.push(message)
})
}
```

@@ -65,0 +80,0 @@

@@ -83,3 +83,3 @@ 'use strict'

this.$get = ['PhoenixBase', (PhoenixBase) => {
this.$get = ['$q', 'PhoenixBase', ($q, PhoenixBase) => {
var socket = new PhoenixBase.Socket(urlBase),

@@ -102,3 +102,3 @@ channels = new Map(),

promise = new Promise(joinRes)
promise = new $q(joinRes)

@@ -105,0 +105,0 @@ promise

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc