added websocket support for demo