Author Archives: Harshdeep Singh


Socket.IO is a library that enables bidirectional and event-based communication between clients and servers. Installation: Open Cmd and run the command given below: npm install   Import: import * as io from ‘’;   Connection: From same domainĀ    From different domain   In case of different domains, please make sure to enable Cross-Origin Continue Reading »

CORS – React JS

CORS stands for Cross-Origin Resource Sharing. It is basically a mechanism that uses HTTP headers to tell the browser whether a specific web app can share resources with another web app or not. Here Both the web apps should have different origins because if they have the same origin then they can share the resources Continue Reading »