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

faye-websocket

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faye-websocket - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

13

lib/faye/websocket/api.js

@@ -48,3 +48,3 @@ var API = {

addEventListener: function(type, listener, useCapture) {
addEventListener: function(eventType, listener, useCapture) {
this._listeners = this._listeners || {};

@@ -55,3 +55,3 @@ var list = this._listeners[eventType] = this._listeners[eventType] || [];

removeEventListener: function(type, listener, useCapture) {
removeEventListener: function(eventType, listener, useCapture) {
if (!this._listeners || !this._listeners[eventType]) return;

@@ -79,9 +79,6 @@

var args = Array.prototype.slice.call(arguments),
eventType = args.shift();
if (!this._listeners || !this._listeners[event.type]) return;
if (!this._listeners || !this._listeners[eventType]) return;
this._listeners[eventType].forEach(function(listener) {
listener.apply(this, args);
this._listeners[event.type].forEach(function(listener) {
listener(event);
}, this);

@@ -88,0 +85,0 @@ }

@@ -7,3 +7,3 @@ { "name" : "faye-websocket"

, "version" : "0.1.0"
, "version" : "0.1.1"
, "engines" : {"node": ">=0.4.0"}

@@ -10,0 +10,0 @@ , "main" : "./lib/faye/websocket"

@@ -54,3 +54,3 @@ var Client = require('../../../lib/faye/websocket/client')

var self = this
this._ws.onmessage = function(message) { self._message = message.data }
this._ws.addEventListener('message', function(message) { self._message = message.data })
callback()

@@ -57,0 +57,0 @@ },

Sorry, the diff of this file is not supported yet

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