Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added toJSON for GombotClient

  • Loading branch information...
commit 23cb21a3a873be669e2a587c3074e32850bc43e1 1 parent 8203451
@ckarlof ckarlof authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 client/client.js
View
4 client/client.js
@@ -95,6 +95,10 @@ function mergeArgs(args, def) {
}
GombotClient.prototype = {
+ toJSON: function() {
+ return { user: this.user, keys: this.keys };
+ },
+
// get "session context" from the server
context: function(args, cb) {
if (typeof args === 'function') {
Please sign in to comment.
Something went wrong with that request. Please try again.