-
this a websocket client for AnyProxy. By using it, you could get noticed on information about the realtime requests going through your proxy server.
-
Be sure to launch AnyProxy before using this client.
$ spm install anyproxy-wsclient --save
var anyproxyWsclient = require('anyproxy-wsclient');
new anyproxyWsclient({
baseUrl : "127.0.0.1",
port : "8003", //8003 is the default web socket port for anyproxy
onOpen : function(){
console.log("connection stablished");
},
onGetUpdate : function(record){
//get an updated record
console.log(record);
},
onError : function(e){
console.log("an error occurred :" + e);
},
onClose : function(e){
console.log("connection closed");
}
});