Skip to Content
SDK & ClientTypeScript SDKTransport & Endpoints

Transport & Endpoints

kalam-link wraps transport details, but understanding endpoint mapping helps debugging, tracing, and ops instrumentation.

Base URL

http://localhost:8080

HTTP Endpoints Used By SDK

MethodPathUsed by
POST/v1/api/sqlquery, queryWithFiles, convenience DML
POST/v1/api/auth/loginlogin()
POST/v1/api/auth/refreshrefreshToken()
GET/v1/api/healthcheckhealth checks/tooling

WebSocket Endpoint

MethodPathUsed by
GET/v1/wsconnect, subscribe, subscribeWithSql

Method-To-Transport Mapping

SDK MethodTransport
query()WASM client -> HTTP POST /v1/api/sql
queryWithFiles()direct multipart HTTP POST /v1/api/sql
queryOne() / queryAll()wrapper over query() + local row parsing
insert() / update() / delete()WASM client SQL helpers via POST /v1/api/sql
executeAsUser()wrapper that rewrites SQL then calls query()
login()WASM client -> HTTP POST /v1/api/auth/login
refreshToken()WASM client -> HTTP POST /v1/api/auth/refresh
connect()WebSocket handshake GET /v1/ws
subscribeWithSql()WebSocket subscription stream
consumeBatch()WASM topic consume API
ack()WASM topic ack API

Connection Flow

  1. create client with Auth.basic, Auth.jwt, or Auth.none
  2. optional login() to exchange basic credentials for JWT
  3. connect() opens WebSocket session
  4. subscribeWithSql() registers live query stream
  5. query() and queryWithFiles() run over HTTP

References

Last updated on