Liverpie is truly language independent on the application end, but since Telegraph is a Rails thing, and Liverpie is also a Ruby thing, here's an example in Ruby on Rails.

Writing state machines is trivial. If you write a web-based state machine in any language, that works with Liverpie, and you want to see your code in the demo lists, please send it to me.

The more languages to demo, the better!

Ruby on Rails