Skip to content

OphidieDev/Replica

 
 

Repository files navigation

replica (loleris-replica )

Roblox server to client state replication solution which lets the developer subscribe certain players to certain states

NPM Version pesde wally

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/replica@0.2.0"

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.

About

Server to client state replication solution. Made available on the most popular package sources and typed for Typescript.

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • Luau 100.0%