Commit 9ee43e17 authored by mcmlxxix's avatar mcmlxxix
Browse files

added connection state getter (JSONClient.connected)

parent 97b35e04
......@@ -87,6 +87,11 @@ function JSONClient(serverAddr,serverPort) {
this.callback;
this.updates=[];
/* connection state */
this.__defineGetter__("connected",function() {
return this.socket.is_connected;
});
/* convert null values to undefined when parsing */
Socket.prototype.reviver = function(k,v) { if(v === null) return undefined; return v; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment