How to connect socket.io to MongoDB server side of react project?

70 Views Asked by At

I have done a project with React which uses ExpressJS to create a server-side already one and use MongoDB there. How to implement socket.io in the message component of the client site and server side or how to connect socket.io on the server side? The server-side image is given below.

enter image description here

enter image description here

0

There are 0 best solutions below