Skip to content

Latest commit

 

History

History
55 lines (27 loc) · 832 Bytes

File metadata and controls

55 lines (27 loc) · 832 Bytes

Home > server > EventRouter > hasListeners

EventRouter.hasListeners() method

Check if there are listeners for a specific event type.

Signature:

hasListeners(eventType: keyof EventPayloads): boolean;

Parameters

Parameter

Type

Description

eventType

keyof EventPayloads

The type of event to check for listeners.

**Returns:**

boolean

true if listeners are found, false otherwise.