Adapted to the SocketClient of React