We have a nice internal example here: - https://github.com/MaterializeInc/cloud/blob/745083acf825579ae01d5ebe2b827c12a6669964/frontend/src/api/materialize/websocket.ts It would be nice if we could simplify this down to a minimal but useful websocket app . We may want to wait until the websocket API endpoint is considered stable.