Skip to main content
Branch: Release Candidate

offClient

Callable

  • offClient<K>(eventName: K, listener: (player: Player, ...args: Parameters<ICustomClientServerEvent[K]>) => void): void
  • offClient<K>(eventName: Exclude<K, never>, listener: (player: Player, ...args: any[]) => void): void
  • offClient(eventName: string, listener: (player: Player, ...args: any[]) => void): void
  • offClient(listener: (eventName: string, ...args: any[]) => void): void

  • Unsubscribes from a client event with the specified listener.

    Remarks

    Listener should be of the same reference as when event was subscribed to.


    Type parameters

    • K: never