Custom signals
Signal objects and their connection methods.
Functions
NativeSignal:ConnectSubscribe to a Kawaii runtime event such as WebSocket.OnMessage. Keep the returned connection if you may need to unsubscribe before the event source closes.
NativeSignal:FireForward values through a Kawaii runtime event object. This is mainly useful when manually exercising listeners of an event supplied by another API.
NativeSignal:OnceListen for the next event from a Kawaii runtime signal and then disconnect automatically. This works well for a single reply or close notification.
NativeSignal:WaitSuspend until a Kawaii runtime event fires, then receive its arguments. Use it for a one-off event when you do not need a persistent callback.
Signal:ConnectSubscribe a callback to a custom Signal. Each Fire call sends its arguments to the callback until the returned connection is disconnected.
Signal:DestroyFinish using a custom Signal by disconnecting its callbacks and clearing its waiting coroutines. Call it during cleanup for UI or temporary systems.
Signal:DisconnectAllRemove every callback subscription from a custom Signal while keeping the Signal available for new listeners.
Signal:FireSend an event to the callbacks and coroutines waiting on a custom Signal. Use it after your script changes state that subscribers need to know about.
Signal:OnceSubscribe a callback for just the next firing of a custom Signal. The listener disconnects before its callback runs.
Signal:WaitPause the calling coroutine until the next Fire, then receive that firing’s arguments. This is convenient for a short one-time handoff between script tasks.
Signal.newCreate a small custom event for communication between parts of your own script. Unlike a Roblox Instance event, this signal lives entirely in Luau and needs no BindableEvent.
SignalConnection:DisconnectStop a single callback subscription created by Signal:Connect or Signal:Once. Other listeners on the same custom Signal continue receiving events.