protomux-rpc
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -137,2 +137,10 @@ const EventEmitter = require('events') | ||
get mux () { | ||
return this._mux | ||
} | ||
get stream () { | ||
return this._mux.stream | ||
} | ||
respond (method, options, handler) { | ||
@@ -139,0 +147,0 @@ if (typeof options === 'function') { |
{ | ||
"name": "protomux-rpc", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "RPC over Protomux channels", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,3 +53,3 @@ # Protomux RPC | ||
#### `const rpc = new ProtomuxRPC(muxer[, options])` | ||
#### `const rpc = new ProtomuxRPC(mux[, options])` | ||
@@ -60,2 +60,14 @@ Construct a new RPC channel from an existing muxer. | ||
#### `rpc.closed` | ||
Whether or not the RPC channel is closed. | ||
#### `rpc.mux` | ||
The muxer used by the channel. | ||
#### `rpc.stream` | ||
The stream used by the channel. | ||
#### `rpc.respond(method[, options], handler)` | ||
@@ -62,0 +74,0 @@ |
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
10980
203
157