JSON-WSP Namespace
Classes
JSONWspClientHelper
build
Build a JSON-WSP client instance. Example config: { hostname: 'localhost', port: 443, headers: {'Content-Type': 'application/json; charset=UTF-8'}, protocol: 'https', path: '/test?version=1', timeout: 10 }
Signature
build(Object config) : Object
Parameters
- config
- Config of the client
- Type: Object
Returns
- Object
- The return value is not further described
JSONWspClient
request
Perform a request.
Signature
request(Object options, String data, Function errorLogger, Function callback) : void
Parameters
- options
- Options for this request
- Type: Object
- data
- Data to pass on POST requests
- Type: String
- errorLogger
- Function to call on errors
- Type: Function
- callback
- Function to call on finish
- Type: Function