update code for new chromium by websocket