Put in order · NestJS course · Module 5: WebSockets

Event Processing Stages in a Gateway

Arrange the WebSocket event processing stages from reception to response emission

Items to put in order

  • Deserialize data from @MessageBody()
  • Emit the response to clients
  • Process the business logic
  • Validate input data
  • Receive the message via @SubscribeMessage

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