A simple example on how you could implement a StockTicker with XSockets.