We are closed from August 1, 2026 to August 16, 2026. Orders placed during this time will be processed starting on August 17, 2026.
TypeScript application
Koheron SDK 0.x documentation.
You are reading the stable documentation used by most existing customers. This version uses
CONFIG=.../config.yml and the legacy 0.x instrument flow.
Initiate a TypeScript client
The class Client is available in Koheron TypeScript API. It lets you connect to the instrument.
Create a client with:
new Client(private ip:string, websockPoolSize: number)
Example
The TypeScript driver is called within a class App:
class App {
private driver: LedBlinker;
constructor(window: Window, document: Document, ip: string) {
let client = new Client(ip, 5);
window.addEventListener('load', () => {
client.init( () => {
this.driver = new LedBlinker(client);
});
}, false);
window.onbeforeunload = () => { client.exit(); };
}
}
let app = new App(window, document, location.hostname);

