📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

websocket-rpc-protocol

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket-rpc-protocol - npm Package Compare versions

Comparing version

to
0.1.12

2

client.js

@@ -64,3 +64,3 @@ import { signal } from 'easy-signal';

connectionTimeout = setTimeout(() => {
if (socket.readyState !== WebSocket.CLOSED && socket.readyState !== WebSocket.CLOSING) {
if (socket && socket.readyState !== WebSocket.CLOSED && socket.readyState !== WebSocket.CLOSING) {
socket.close();

@@ -67,0 +67,0 @@ }

@@ -110,3 +110,3 @@ import { signal, Signal } from 'easy-signal';

connectionTimeout = setTimeout(() => {
if (socket.readyState !== WebSocket.CLOSED && socket.readyState !== WebSocket.CLOSING) {
if (socket && socket.readyState !== WebSocket.CLOSED && socket.readyState !== WebSocket.CLOSING) {
socket.close();

@@ -113,0 +113,0 @@ }

{
"name": "websocket-rpc-protocol",
"version": "0.1.11",
"version": "0.1.12",
"description": "A JSON RPC protocol for working over websockets. Sheds the weight of JSON RPC to simplify argument names and adds features.",

@@ -5,0 +5,0 @@ "scripts": {