jsonrpc2-ws
Advanced tools
Comparing version 1.0.0-beta2 to 1.0.0-beta3
@@ -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 |
{ | ||
"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
44570
552