Put in order · NestJS course · Module 5: WebSockets

The io.connect Syntax with Options

Arrange the syntax for a Socket.IO client connection with auth options

Items to put in order

  • 'http://localhost:3000',
  • io(
  • { auth: { token: 'jwt-token' } });

You can check the correct answer by solving this task in the CodeWorlds game.