JavaScript wrapper for kdb+ websockets. Makes it easier to develop web applications for kdb.
Usage:
var kdb = new KDB("localhost", 1234);
kdb.query("239*239", function(data) {
console.log(data);
});
This will work after loading necessary JS files:
- kdb.js itself
- c.js from kx wiki
In your q script you will need to:
- Load json.k from kx wiki
- Define .z.ws function
- Open port to start accepting connections
See examples in sample.html and script.q.