Commit Graph

10 Commits

Author SHA1 Message Date
Tom
c397963e84 fix(package/callback): fix broken js callbacks (#742)
This commit reverts commit 87818b3710.
2025-04-02 05:48:23 +11:00
Linden
8509867abd refactor(callback/client): require source in response handler 2025-03-18 02:39:41 +11:00
Linden
87818b3710 fix(package/callback): format setValidCallback event name 2025-03-16 03:41:34 +11:00
Linden
b726faea2d feat(callback): implement callback validation
Prevent callbacks from being overwritten by other resources.
Throw an immediate error if the callback does not exist.
2025-02-03 15:41:58 +11:00
Linden
cba4b85a29 fix(callback/js): match callback timeout to lua 2024-10-06 03:28:28 +11:00
Linden
2166b076da feat(callback): add timeout to callback events
Should help when people await broken or unregistered events.
Defaults to 60 seconds, adjusted with convar ox:callbackTimeout.
2024-05-03 15:49:33 +10:00
Luke
61e3ba9904 fix(package): no implicit any 2023-09-16 10:37:14 +02:00
Can Sönmez
467e7f51ac fix(package/callback): await callback response (#340) 2023-05-26 09:04:30 +10:00
Luke
da9b55fa84 refactor(package/callbacks): improve typings 2022-12-13 08:26:43 +11:00
Linden
8abc416dad feat(package): TS callback events 2022-12-13 08:26:43 +11:00