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

vue-sse

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-sse - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

dist/vue-sse.common.js
/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

/*!
* vue-sse v2.1.1
* vue-sse v2.1.2
* (c) 2021 James Churchard

@@ -4,0 +4,0 @@ * @license MIT

{
"name": "vue-sse",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Vue plugin for using Server-Sent Events (EventSource)",

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

@@ -124,9 +124,9 @@ # VueSSE

// Handle messages without a specific event
sseClient.on('message', handleMessage);
sseClient.on('message', this.handleMessage);
// Handle 'chat' messages
sseClient.on('chat', handleChat);
sseClient.on('chat', this.handleChat);
// Handle once for a ban message
sseClient.once('ban', handleBan);
sseClient.once('ban', this.handleBan);

@@ -139,3 +139,3 @@ sseClient.connect()

setTimeout(() => {
sseClient.off('message', handleMessage);
sseClient.off('message', this.handleMessage);
console.log('Stopped listening to event-less messages!');

@@ -146,3 +146,3 @@ }, 7000);

setTimeout(() => {
sse.off('chat', handleChat);
sse.off('chat', this.handleChat);
console.log('Stopped listening to chat messages!');

@@ -149,0 +149,0 @@ }, 14000);

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