- Added
<Client>.Once
method. This method is the same as<Client>.On
, but it only runs once.- Example:
client.Once("open", () => { Log.Info("Connected to the server!"); });
- Added
<Client>.Off
method. This method is used to remove an event listener.- Example:
const openEvent = () => { Log.Info("Connected to the server!"); }; client.On("open", openEvent); // This will remove the event listener. client.Off("open", openEvent);
- Added more consistent documentation to the following files:
@/Main.ts
@/Utilities/Types.ts
@/Utilities/Logger.ts
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.