Skip to main content

Signal

License Release CI CI

A bare-bones signal implementation with publish/subscribe functionality. This library was inspired by the signal implementation found in Roact.

Example

local Signal = require(path.to.Signal)

local signal = Signal.new()
signal:subscribe(function(message: string)
print(message)
end)

signal:fire("Hello World!")
-- output: Hello World!

See the Signal API for more info

Installation

Install the Signal package through Wally.

Signal = "riverman56/signal@<version>"