@push-rpc/websocket
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -25,2 +25,5 @@ "use strict"; | ||
}, | ||
onPing: function (h) { | ||
// not implemented | ||
}, | ||
terminate: function () { return ws.close(); }, | ||
@@ -27,0 +30,0 @@ send: function (data) { return ws.send(data); }, |
@@ -24,4 +24,3 @@ "use strict"; | ||
function wrapWebsocket(ws) { | ||
var errorHandler = function () { | ||
}; | ||
var errorHandler = function () { }; | ||
return { | ||
@@ -44,2 +43,3 @@ onMessage: function (h) { | ||
onPong: function (h) { return ws.on("pong", h); }, | ||
onPing: function (h) { return ws.on("ping", h); }, | ||
terminate: function () { return ws.terminate(); }, | ||
@@ -46,0 +46,0 @@ send: function (data) { |
{ | ||
"name": "@push-rpc/websocket", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"main": "dist/index.js", | ||
@@ -18,3 +18,3 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@push-rpc/core": "1.0.13" | ||
"@push-rpc/core": "^1.0.30" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": "https://github.com/vasyas/push-rpc.git", |
@@ -22,2 +22,5 @@ import {Socket} from "@push-rpc/core" | ||
}, | ||
onPing: h => { | ||
// not implemented | ||
}, | ||
@@ -24,0 +27,0 @@ terminate: () => ws.close(), |
@@ -26,6 +26,4 @@ import * as WebSocket from "ws" | ||
export function wrapWebsocket(ws): Socket { | ||
let errorHandler: (e: any) => void = () => { | ||
let errorHandler: (e: any) => void = () => {} | ||
} | ||
return { | ||
@@ -46,2 +44,3 @@ onMessage: h => | ||
onPong: h => ws.on("pong", h), | ||
onPing: h => ws.on("ping", h), | ||
@@ -48,0 +47,0 @@ terminate: () => ws.terminate(), |
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
6714
212
+ Added@push-rpc/core@1.9.0(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
- Removed@push-rpc/core@1.0.13(transitive)
Updated@push-rpc/core@^1.0.30