An Express developer wants to setup a custom namespace called ‘/gossip’ on the server side to which the client can connect. Which of the following is the CORRECT option for this requirement?

const gos = io.of('/gossip');

const gos = new io('/gossip');

const gos = io.connect('/gossip');

const gos = io.link('/gossip');

Verified Answer
Correct Option - a

To get all Infosys Certified NodeJS Expert Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram