• Preparing search index...
  • The search index is not available
session-service
  • session-service
  • application/commandHandlers/createSessionCommandHandler
  • handleCreateSessionCommand

Function handleCreateSessionCommand

  • handleCreateSessionCommand(sessions, command): Promise<CreateSessionResponse>
  • Create Session Command Handler. Creates a session if the provided URL is a valid Youtube Video URL. The session is automatically deleted if no user joins it in timeout seconds (5 seconds).

    Parameters

    • sessions: SessionRepository

      Session repository

    • command: CreateSessionCommand

      Create Session command

    Returns Promise<CreateSessionResponse>

    A Create Session Response to send back to the client if the session is successfully created

    • Defined in application/commandHandlers/createSessionCommandHandler.ts:19

Settings

Member Visibility
session-service
  • Loading...

Generated using TypeDoc