# dhtmlxconnector:base_concept [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxconnector
Usage Guide

### Multi-user sync

Connector 1.x can work in multi-user mode, in such mode all users will see changes of other users in real-time mode.

To enable mode you need to

a) init component with dataprocessor in default way b) add to the server side code

      	require("../../codebase/grid_connector.php");
    	$grid = new GridConnector($res);
    	$grid->enable_live_update('actions_table');  //this line!

Where actions_table - table in Db, which will be used for sync. data storage. It need to have the next structure.

    CREATE TABLE `actions_table` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `dataId` int(11) NOT NULL,
      `type` varchar(255) NOT NULL,
      `user` varchar(255) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM;

c) on client side, add the next code line after dataprocessor initialization

      dp.setAutoUpdate(2000);

where parameter of command - delay between update calls.

That is all, now all users of component will be able to see changes of other users.

It works for all connector and all components.