NodeJS websockets Here, We are establishing a websocket on a specific route /sales such that, it sends the json data from the mongoDB database.