Skip to content
Use datomic's tx-report-queue to push changes to the client via websockets
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
src
.gitignore
README.md
project.clj

README.md

push-demo

Datomic has an interesting feature called the Transaction Report Queue, which allows for a client (or peer) application to monitor changes to a database.

The Clojure code in this repo shows how to use the transaction report queue to monitor transactions, and push changes to a web page using websockets.

Technologies used:

  • Clojure and ClojureScript
  • Ring with Compojure
  • Datomic
  • Sente for websocket communication
  • Reagent (a ClojureScript interface for Facebook's React library) for rendering the UI

Running the Application

  1. Install Datomic
  2. lein run
  3. Open http://localhost:3000
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.