Socket
Socket
Sign inDemoInstall

websocket-driver

Package Overview
Dependencies
3
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.3 to 0.7.4

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### 0.7.4 / 2020-05-22
- Avoid crashing if `process.version` does not contain any digits
- Emit `ping` and `pong` events from the `Server` driver
- Require http-parser-js >=0.5.1 which fixes the bug we addressed in 0.7.3
### 0.7.3 / 2019-06-13

@@ -2,0 +8,0 @@

2

lib/websocket/driver/server.js

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

var instance = {
EVENTS: ['open', 'message', 'error', 'close'],
EVENTS: ['open', 'message', 'error', 'close', 'ping', 'pong'],

@@ -20,0 +20,0 @@ _bindEventListeners: function() {

@@ -99,5 +99,5 @@ 'use strict';

var VERSION = (process.version || '')
.match(/[0-9]+/g)
.map(function(n) { return parseInt(n, 10) });
var VERSION = process.version
? process.version.match(/[0-9]+/g).map(function(n) { return parseInt(n, 10) })
: [];

@@ -104,0 +104,0 @@ if (VERSION[0] === 0 && VERSION[1] === 12) {

@@ -1,2 +0,2 @@

Copyright 2010-2019 James Coglan
Copyright 2010-2020 James Coglan

@@ -3,0 +3,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use

@@ -10,3 +10,3 @@ {

"license": "Apache-2.0",
"version": "0.7.3",
"version": "0.7.4",
"engines": {

@@ -20,3 +20,3 @@ "node": ">=0.8.0"

"dependencies": {
"http-parser-js": ">=0.4.0 <0.4.11",
"http-parser-js": ">=0.5.1",
"safe-buffer": ">=5.1.0",

@@ -23,0 +23,0 @@ "websocket-extensions": ">=0.1.1"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc