New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsonrpc2-ws

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonrpc2-ws - npm Package Compare versions

Comparing version 1.0.0-beta2 to 1.0.0-beta3

8

lib/server.d.ts

@@ -30,2 +30,10 @@ /// <reference types="node" />

}
export default interface Server {
on(event: "listening", cb: (this: Server) => void): this;
on(event: "connection", cb: (this: Server, socket: Socket, req?: http.IncomingMessage) => void): this;
on(event: "error", cb: (this: Server, error: Error) => void): this;
}
export interface Socket {
on(event: "close", cb: (this: Socket) => void): this;
}
/**

@@ -32,0 +40,0 @@ * JSON-RPC 2.0 WebSocket Server

2

package.json
{
"name": "jsonrpc2-ws",
"version": "1.0.0-beta2",
"version": "1.0.0-beta3",
"description": "Yet Another Server Library which Implementation of JSON-RPC 2.0 over WebSocket for Node.js (w/ TypeScript)",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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