Computer scienceBackendNode.jsClient-server interaction

Websocket server

Theory

socket.IO

Report a typo

Fill in the blank with the event name that Socket.IO uses to signal a new connection.

Fill in the gaps with the relevant elements
io.on('', (socket) => {
  console.log('a client connected');
});
disconnectconnectionmessageemit

Create a free account to access the full topic