Skip to main content

DataSync Configuration

When creating an instance of DataSync, it should receive the following parameters for the correct configuration:

Parameters

Field Name

Type

Description

id

string

The randomly generated identifier of the terminal for DataSync

config

object

Contains all necessary information for the DataSync instance

Config

Field Name

Type

Description

channel

string

The identifier consisting of the application identifier and the identifier of the site in which the terminal is located

name

string

The name of the terminal consisting of the application identifier and the terminal identifier

looptime

number

The time of cyclic notification about the status of the terminal, specified in microseconds (ms)

secret

string

Marks each User Datagram Protocol (UDP) message

feeds

array <feed>

A list of feeds that is synchronized between terminals

updatedRecord

function

A function to store a synchronized entity in the POS-APP database

findOne

function

A function to find an entity by identifier in the POS-APP database