We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819c64d commit bfc9243Copy full SHA for bfc9243
pynetworktables2js/js/networktables.js
@@ -37,6 +37,12 @@ var NetworkTables = new function () {
37
return this._[d3_map_escape(key)];
38
};
39
40
+ this.getKeys = function() {
41
+ var keys = [];
42
+ for(var key in this._) keys.push(d3_map_unescape(key));
43
+ return keys;
44
+ };
45
+
46
this.has = function(key) {
47
return d3_map_escape(key) in this._;
48
@@ -181,6 +187,11 @@ var NetworkTables = new function () {
181
187
return ntCache.has(key);
182
188
183
189
190
+ // Returns all the keys in the NetworkTables
191
192
+ return ntCache.getKeys();
193
194
184
195
/**
185
196
Returns the value that the key maps to. If the websocket is not
186
197
open, this will always return the default value specified.
0 commit comments