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

laravel-echo

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-echo - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

dist/echo.iife.js

6

dist/connector/connector.d.ts

@@ -40,6 +40,10 @@ import { Channel, PresenceChannel } from './../channel';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/
abstract leave(channel: string): void;
/**
* Leave the given channel.
*/
abstract leaveChannel(channel: string): void;
/**
* Get the socket_id of the connection.

@@ -46,0 +50,0 @@ */

@@ -32,6 +32,10 @@ import { Connector } from './connector';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/
leave(name: string): void;
/**
* Leave the given channel.
*/
leaveChannel(name: string): void;
/**
* Get the socket ID for the connection.

@@ -38,0 +42,0 @@ */

@@ -36,6 +36,10 @@ import { Connector } from './connector';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/
leave(name: string): void;
/**
* Leave the given channel.
*/
leaveChannel(name: string): void;
/**
* Get the socket ID for the connection.

@@ -42,0 +46,0 @@ */

@@ -40,6 +40,10 @@ import { Connector } from './connector';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/
leave(name: string): void;
/**
* Leave the given channel.
*/
leaveChannel(name: string): void;
/**
* Get the socket ID for the connection.

@@ -46,0 +50,0 @@ */

49

dist/echo.common.js

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

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -797,9 +797,18 @@

channels.forEach(function (name, index) {
if (_this2.channels[name]) {
_this2.channels[name].unsubscribe();
delete _this2.channels[name];
}
_this2.leaveChannel(name);
});
}
/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -916,3 +925,3 @@ */

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -927,9 +936,18 @@

channels.forEach(function (name) {
if (_this2.channels[name]) {
_this2.channels[name].unsubscribe();
delete _this2.channels[name];
}
_this2.leaveChannel(name);
});
}
/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -1020,3 +1038,3 @@ */

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -1030,2 +1048,11 @@

/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {}
//
/**
* Get the socket ID for the connection.

@@ -1032,0 +1059,0 @@ */

@@ -784,3 +784,3 @@ var classCallCheck = function (instance, Constructor) {

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -795,9 +795,18 @@

channels.forEach(function (name, index) {
if (_this2.channels[name]) {
_this2.channels[name].unsubscribe();
delete _this2.channels[name];
}
_this2.leaveChannel(name);
});
}
/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -914,3 +923,3 @@ */

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -925,9 +934,18 @@

channels.forEach(function (name) {
if (_this2.channels[name]) {
_this2.channels[name].unsubscribe();
delete _this2.channels[name];
}
_this2.leaveChannel(name);
});
}
/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -1018,3 +1036,3 @@ */

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -1028,2 +1046,11 @@

/**
* Leave the given channel.
*/
}, {
key: 'leaveChannel',
value: function leaveChannel(name) {}
//
/**
* Get the socket ID for the connection.

@@ -1030,0 +1057,0 @@ */

{
"name": "laravel-echo",
"version": "1.5.1",
"version": "1.5.2",
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration",

@@ -5,0 +5,0 @@ "main": "dist/echo.common.js",

@@ -9,2 +9,3 @@ import typescript from 'rollup-plugin-typescript';

{ file: './dist/echo.common.js', format: 'cjs' },
{ file: './dist/echo.iife.js', format: 'iife', name: 'Echo' },
],

@@ -11,0 +12,0 @@ plugins: [

@@ -84,3 +84,3 @@ import { Channel, PresenceChannel } from './../channel';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -90,2 +90,7 @@ abstract leave(channel: string): void;

/**
* Leave the given channel.
*/
abstract leaveChannel(channel: string): void;
/**
* Get the socket_id of the connection.

@@ -92,0 +97,0 @@ */

@@ -51,5 +51,12 @@ import { Connector } from './connector';

/**
* Leave the given channel, as well as its private and presence variants.
*/
leave(name: string): void {
//
}
/**
* Leave the given channel.
*/
leave(name: string) {
leaveChannel(name: string): void {
//

@@ -56,0 +63,0 @@ }

@@ -84,13 +84,9 @@ import { Connector } from './connector';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/
leave(name: string) {
leave(name: string): void {
let channels = [name, 'private-' + name, 'presence-' + name];
channels.forEach((name: string, index: number) => {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
this.leaveChannel(name);
});

@@ -100,2 +96,13 @@ }

/**
* Leave the given channel.
*/
leaveChannel(name: string): void {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -102,0 +109,0 @@ */

@@ -97,3 +97,3 @@ import { Connector } from './connector';

/**
* Leave the given channel.
* Leave the given channel, as well as its private and presence variants.
*/

@@ -104,7 +104,3 @@ leave(name: string): void {

channels.forEach(name => {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
this.leaveChannel(name);
});

@@ -114,2 +110,13 @@ }

/**
* Leave the given channel.
*/
leaveChannel(name: string): void {
if (this.channels[name]) {
this.channels[name].unsubscribe();
delete this.channels[name];
}
}
/**
* Get the socket ID for the connection.

@@ -116,0 +123,0 @@ */

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