-
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)
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.
Node.js
DEBUG="Repliq:*" node ...
Browser
localStorage.debug = "Repliq:*"
npm run compile-example -- <example name>
e.g.
npm run compile-example -- chat
or if you want to compile all:
npm run compile-example