Skip to content

ticup/repliq

Repository files navigation

Server Synchronization

Periodic Yield Cycle

  • Start server with a given ms as third argument

      new RepliqServer(app?: http.Server | number, schema?: RepliqTemplateMap, yieldCycle?: number)
    

e.g.

   new RepliqServer(app, schema, 200)

will yield every 200 milliseconds.

This can also be manually activated by using:

    server.yieldEvery(ms: number)

External Change Propagation

If the yieldCycle argument is not given upon construction, changes will be automatically propagated when clients yield to the server. Changes made on the server itself, i.e. by the server itself, will not propagated automatically and still require an explicit yield.

Running with Debug Output

Node.js

    DEBUG="Repliq:*" node ...

Browser

    localStorage.debug = "Repliq:*"

Compiling Examples

    npm run compile-example -- <example name>

e.g.

    npm run compile-example -- chat

or if you want to compile all:

    npm run compile-example

About

Realtime and Offline Available Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published