var BitfinexWS = require ('bitfinex-api-node').WS;

var bws = new BitfinexWS();

bws.on('open', function () {
    bws.subscribeTrades('BTCUSD');
    bws.subscribeOrderBook('BTCUSD');
    bws.subscribeTicker('LTCBTC');
});

bws.on('BTCUSD_trades', function (trade) {
    console.log('Trade:', trade);
});

bws.on('BTCUSD_book', function (book) {
    console.log('Order book:', book);
});

bws.on('LTCBTC_ticker', function (ticker) {
    console.log('Ticker:', ticker);
});

bws.on('subscribed', function (data) {
    console.log('New subscription', data);
});

bws.on('error', console.error);

@@ -228,21 +228,13 @@
 on('
-BTCUSD_
 trade
-s
 ', f
@@ -242,16 +242,22 @@
 nction (
+pair, 
 trade) %7B
@@ -308,15 +308,13 @@
 on('
-BTCUSD_
+order
 book
@@ -326,16 +326,22 @@
 nction (
+pair, 
 book) %7B%0A
@@ -395,15 +395,8 @@
 on('
-LTCBTC_
 tick
@@ -410,16 +410,22 @@
 nction (
+pair, 
 ticker) 

Update example