Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 608 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 608 Bytes

kdb.js

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:

  1. Load json.k from kx wiki
  2. Define .z.ws function
  3. Open port to start accepting connections

See examples in sample.html and script.q.