change the communication type。using websocket