Skip to content

PmeGateway

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/api/src/pme/pme.gateway.ts

Implements: OnGatewayConnection, OnGatewayDisconnect

Methods

MethodSignatureReturns
handleConnectionhandleConnection(client: Socket)void
handleDisconnecthandleDisconnect(client: Socket)void
handleSubscribehandleSubscribe(client: Socket, data: { jobId: string })void
handleUnsubscribehandleUnsubscribe(client: Socket, data: { jobId: string })void
emitProgressemitProgress(event: PmeProgressEvent)void
emitCompletedemitCompleted(event: PmeCompletedEvent)void
emitFailedemitFailed(event: PmeFailedEvent)void
hasSubscribershasSubscribers(jobId: string)boolean
getSubscriberCountgetSubscriberCount(jobId: string)number

Properties

PropertyType
serverServer

Where it refuses work

  • PmeGateway stops the work with an early return when !jobId, in 2 places.

Referenced By

  • PmeModule (MODULE_PROVIDES)
  • PmeModule (MODULE_EXPORTS)

Was this page helpful?

Download as PDF