Displaying live data from a websocket API

Is there a way to bring in (display) LIVE data from (for example) a stock exchange that has a WebSocket API?