Skip to content
Browse files

added toJSON for GombotClient

  • Loading branch information...
1 parent 8203451 commit 23cb21a3a873be669e2a587c3074e32850bc43e1 @ckarlof ckarlof committed
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') {

0 comments on commit 23cb21a

Please sign in to comment.
Something went wrong with that request. Please try again.