Comparing version 2.1.1 to 2.1.2
/*! | ||
* 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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198173