Skip to content
On this page

once()

Subscribes to a custom server event with the specified listener, which only triggers once.

Function Definition

ts
function once<K extends string>(eventName: K, listener: shared.InterfaceValueByKey<IServerEvent, K, (...args: any[]) => void, never>): void;

Arguments

  • eventName: K
  • listener: shared.InterfaceValueByKey<IServerEvent, K, (...args: any[]) => void, never>

Returns

  • void

Documentation

No Documentation Provided Yet

Documentation Created with ❤️ by Stuyk