Comparing version 1.5.8 to 1.5.9
@@ -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: |
@@ -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", |
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
278773
6945