Put in order · NestJS course · Module 5: WebSockets

The server.to().emit() Syntax

Arrange the syntax for sending an event to a room, from the server object to the data

Items to put in order

  • 'fleet-update', { status: 'ready' });
  • this.server
  • .to('command-room')
  • .emit(

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