ophidiedev/replica
v0.2.0 ·
Roblox server to client state replication solution which lets the developer subscribe certain players to certain states. Originally made by loleris
replica (loleris-replica)
Roblox server to client state replication solution which lets the developer subscribe certain players to certain states
Warning
This package is not compatible with other versions of Replica. Breaking changes have been made to the source code. See the changes category below.
Note
The original source code for the replica project can be found here The parent fork which contains edits to make the project able to be used with wally can be found here
Features
- Replicate server-side information to the client as a read-only state
- Both server and client can connect cleanup tasks for the moment of replica destruction (Individual states in the Replica module are called "replicas")
- State changes can trigger listeners on the client-side
Installation
Add to your wally.toml:
replica = "ophidiedev/[email protected]"
Add to your pesde.toml:
replica = { name = "ophidiedev/replica", version = "^0.2.0" }
Add to your package.json:
"@rbxts/loleris-replica": "^0.2.0"
Changes
- Replica.New() renamed to Replica.new(), change ensures compatibility with roblox-ts "new" keyword.
- Package returns an additional "default" property for compatibility with typescript typings.
Licenses
- The original source code for Replica is Apache-2.0 Licensed the original source can be found here.