The server is obviously websocket-rails, and the bitfinex website itself provides a fairly complete client (in its application-XXX.js file). When I subscribe to "ticker", I get "ticker.new" messages like this:
{"pair":"BTCUSD","buying":"270.15","selling":"270.36","last":"270.38","daily_change":"-9.82"}
These are great of course, but not sufficient to build up an order book.
There's also a "trade.btcusd" (and presumably other pairs) which gives:
{"pair":"BTCUSD","price":"270.97","amount":"0.27","side":0,"timestamp":"1425505661.56676188"}
for every trade (presumably).
I've tried all kinds of variations of order, book, orderbook, books (with various pairs added to the end), but I can't find what to subscribe to for a realtime order book.
(of course I'm only guessing that such a thing is there)