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

websocket

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

lib/websocket.js

@@ -7,3 +7,3 @@ module.exports = {

"request" : require('./WebSocketRequest'),
"version" : "0.0.10"
"version" : "0.0.11"
};

@@ -128,3 +128,3 @@ var extend = require('./utils').extend;

method: 'GET',
path: this.url.path
path: this.url.pathname
};

@@ -157,3 +157,3 @@

var handleRequestError = function(error) {
s.emit('error', error);
s.emit('connectFailed', error);
}

@@ -170,3 +170,3 @@ client.on('error', handleRequestError);

var req = this.request = client.request(this.url.path, reqHeaders);
var req = this.request = client.request(this.url.pathname, reqHeaders);

@@ -173,0 +173,0 @@ req.on('response', function(response) {

@@ -6,3 +6,3 @@ {

"author": "Brian McKelvey <brian@worlize.com>",
"version": "0.0.10",
"version": "0.0.11",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

@@ -112,3 +112,3 @@ WebSocket Client & Server Implementation for Node

client.on('error', function(error) {
client.on('connectFailed', function(error) {
console.log("Connect Error: " + error.toString());

@@ -115,0 +115,0 @@ });

@@ -41,7 +41,3 @@ #!/usr/bin/env node

client.on('connectFailed', function(errorDescription) {
console.log("Connect Error: " + errorDescription);
});
client.on('error', function(error) {
client.on('connectFailed', function(error) {
console.log("Client Error: " + error.toString())

@@ -48,0 +44,0 @@ });

@@ -28,3 +28,3 @@ #!/usr/bin/env node

mirrorClient.on('error', function(error) {
mirrorClient.on('connectFailed', function(error) {
console.log("Connect Error: " + error.toString());

@@ -60,3 +60,3 @@ });

incrementClient.on('error', function(error) {
incrementClient.on('connectFailed', function(error) {
console.log("Connect Error: " + error.toString());

@@ -63,0 +63,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