Help on Web3.js

lixiang9779

Member
Joined
Jul 19, 2009
Messages
483
Reaction score
0
Is it possible to run a javascript on server side on perpetuity?

I saw web3.js have a watch function that is always looping. However, most of the time i see it used on websites, but not server side.


How can I run a javascript on server side continuously so i can use the watch function in web3.js?
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Is it possible to run a javascript on server side on perpetuity?

I saw web3.js have a watch function that is always looping. However, most of the time i see it used on websites, but not server side.


How can I run a javascript on server side continuously so i can use the watch function in web3.js?

You can run javascript perpetuity on server side, you need an JS engine to do it. It can be a headless browser with a JS engine, a server like node,js using the V8 js engine, or Rhino/Nashorn JS engine running inside a JVM. But the context at which they run will be different from the context of your JS running inside your browser. One is client side and one is server side. The only one i mention above is working as a client side is automating a server side headless browser.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top