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

wsgrpc

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsgrpc - npm Package Compare versions

Comparing version 1.5.8 to 1.5.9

6

lib/generated/wsgrpc.js

@@ -5,5 +5,9 @@ /*eslint-disable block-scoped-var, no-redeclare, no-control-regex, no-prototype-builtins*/

/// == when build for npm
var $protobuf = require("protobufjs/minimal");
//var $protobuf = require("protobufjs/minimal");
/// == when build for web
//var $protobuf = typeof window != "undefined" && window.protobuf;
/// == both?
var $protobuf =
(typeof window != "undefined" && window.protobuf) ||
require("protobufjs/minimal");

@@ -10,0 +14,0 @@ //in react project add this to main.js file:

2

lib/GrpcProtocol.js

@@ -61,3 +61,3 @@ "use strict";

this.streams.clear();
this.router.stopServices();
this.router && this.router.stopServices();
};

@@ -64,0 +64,0 @@ Object.defineProperty(GrpcProtocol.prototype, "closed", {

@@ -70,3 +70,3 @@ "use strict";

ws.onclose = function (event) {
console.error("[WSGRPC]channel.ws.onclose", event);
console.error("[WSGRPC]channel.ws.onclose");
future.reject(new Error("open socket error"));

@@ -76,5 +76,6 @@ };

retainingWS = ws;
console.log("[WSGRPC]channel.ws connecting: ", retainingWS);
//console.log("[WSGRPC]channel.ws connecting", retainingWS);
return [4 /*yield*/, future.promise];
case 1:
//console.log("[WSGRPC]channel.ws connecting", retainingWS);
_a.sent();

@@ -81,0 +82,0 @@ console.log("[WSGRPC]channel.ws.onopen continue");

{
"name": "wsgrpc",
"version": "1.5.8",
"version": "1.5.9",
"description": "Using WebSocket as gRPC transport",

@@ -5,0 +5,0 @@ "author": "tsangpo",

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