0.5.3 • Published 6 years ago
@betakiller/wamp-wrapper v0.5.3
betakiller-wamp-js
JavaScript facade for BetaKiller WAMP transport
Use
import BetakillerWampFacade from '@betakiller/wamp-wrapper';
const WampFacade = new BetakillerWampFacade;
WampFacade
.requestApi('validation', 'userEmail', 'login@domain.tld')
.then(response => console.log('Request response:', response))
.catch(error => console.error('Request error:', error));
// Import NPM module
import BetakillerWampFacade from '@betakiller/wamp-wrapper';
// Creating instance of WAMP facade
const WampFacade = new BetakillerWampFacade(
// Event on resolve connecting
(facade)=>console.log('Connecting result:', facade),
// Event on reject/error connecting
(data)=>console.log('Connecting error:', data),
// Debug mode
true
);
// Creating WAMP request
WampFacade
// Request: string uri, string|array data
//.request('api', ['validation', 'userEmail', 'login@domain.tld'])
// Request RPC API: string resource, string method, string|array data
.requestApi('validation', 'userEmail', 'login@domain.tld')
// Event on resolve request
.then(response => console.log('Request response:', response))
// Event on reject/error request
.catch(error => console.error('Request error:', error));
Install
0.5.3
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.11
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.8
6 years ago
0.4.7
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.3
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago