extend example with WebSockets