How does the Nextcloud Sync work (syncing between server and client ?, push ? pull ?)

How does the Nextcloud Sync work (syncing between server and client ?, push ? pull ?)

Can anybody explain to me the syncing process.