Add websocket support and sample app