Children of Dune - chapter 5 question - killed/arrested for not kneeling? Just create rest program from server side and create the connection at a Web page. Also instead of calling this function in ComponentDidMount hooks. I made a hook inspired by GraphQL in the format const { data, loading, error } = useSubscription(url) and it also shares the same websocket if it's already open and retries (exponential back off) if the connection closes abnormally. Solution: You would have to maintain a maxRetries variable and check it every time before reconnecting. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Now the component's responsibility was to wire the state and the websocket technology for the rest of the application to use. We have to use the command: npm install -S socket.io-client for installing it. Ich habe dieses Problem behoben, indem ich die Version auf 2.1.1 heruntergestuft habe. When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on stackoverflow.com. To get a sleek dark-themed UI, I turned to Material . Almost 7 years of experience in Web Development, designing and developing User Interface (UI) applications and professional web applications using JAVA, HTML 4.0/5, CSS2/CSS3, JAVASCRIPT, JQuery, TYPESCRIPT, AJAX, Angular JS,NodeJs, GraphQL, NGRX, Bootstrap Framework, Restful services, JSON AND XML, MongoDB, Devops, Oracle, Nuxeo, Springboot, Websockets.Microservices and unit testing using . Are you sure you want to hide this comment? You can just compose this