So I made a file which handles the namespace connect which is this one:
import io from "socket.io-client"; const namespaces = { \'root\': \'http://