I’m trying “live update” with grid and dataprocessor . Following this steps - localhost:8008/sync.js . To what that related ? Form description : sync.js (a file located on the Node.js server). But this file exist only in “nodejs\node_modules\npm\node_modules\mkdirp\test” directory . “test” directory ?
Please , help in this situation … With best regards ! Rimantas
Forget this . Simply started node server at first time I closed command prompt window . It closed and server . Now I tried again , leaved cmd open . No errors .
How to check on the same PC , how live update is working ?
I tried with one small grid , added this : myDp.live_updates( “http://localhost:8008/sync” );
Then run the grid on chrome and IE9 . Did changes in IE9 … sorry , but nothing changes in Chrome …
Another question - how to avoid cmd window for nodejs server ? Can this be started with Apache server ? I’m using wamp.
Folowwing to this I did that ( bat file ) :
set PATH=C:\Program Files\nodejs\npm;%~dp0;%PATH%
nssm.exe install lv_up-node C:\Program Files\nodejs\node.exe d:\wamp\www\nodejs\server.js
net start lv_up-node
It did half of work - create service , but can’t to start . It return error :
A service specific error occurred: 3
More help is available by typing NET HELPMSG 3547
Maybe somebody know more about that error ? Any idea ?
Simply do from cmd : “nssm install yourservicename” and then direct node.exe and options ( in mine case c:\program files\nodejs\node.exe and d:/wamp/www/nodejs/server.js ) . All is working fine … Now I’m getting fully functional live update …
Another question will be - how to check is running “live_update” service or not ? Can this be done ?
Though “live update” is working fine , mine question is related to other thing . Let say that “LiveUpdate” service ( server ) stops and user don’t know about that . How to catch error of myDp.live_updates( “http://127.0.0.1:8008/sync” ); ? And show warning in the screen “Your live update isn’t working !!!” ? Can this be done ?