noice-json-rpc
Advanced tools
Comparing version 1.0.1 to 1.0.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -9,8 +9,5 @@ /// <reference types="node" /> | ||
removeListener(event: string, cb: Function): any; | ||
on(event: 'open', cb: (ws: LikeSocket) => void): any; | ||
on(event: 'message', cb: (data: string) => void): any; | ||
} | ||
export interface LikeSocketServer { | ||
on(event: string, cb: Function): any; | ||
on(event: 'connection', cb: (ws: LikeSocket) => void): any; | ||
clients?: LikeSocket[]; | ||
@@ -17,0 +14,0 @@ } |
"use strict"; | ||
const events_1 = require('events'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const events_1 = require("events"); | ||
/** | ||
@@ -27,3 +28,3 @@ * Creates a RPC Client. | ||
}); | ||
socket.on('message', message => this.processMessage(message)); | ||
socket.on('message', (message) => this.processMessage(message)); | ||
} | ||
@@ -166,4 +167,4 @@ processMessage(messageStr) { | ||
this._socketServer = server; | ||
server.on('connection', socket => { | ||
socket.on('message', message => this.processMessage(message, socket)); | ||
server.on('connection', (socket) => { | ||
socket.on('message', (message) => this.processMessage(message, socket)); | ||
}); | ||
@@ -170,0 +171,0 @@ } |
{ | ||
"name": "noice-json-rpc", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Noice Json RPC exposes a clean ES6 Proxy and Promise based interface for JSON-RPC2 Clients and Servers", | ||
@@ -5,0 +5,0 @@ "main": "lib/noice-json-rpc.js", |
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
26225
503