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

@push-rpc/websocket

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@push-rpc/websocket - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

3

dist/client.js

@@ -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); },

4

dist/server.js

@@ -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(),

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