Connect to the pool and start mining. The optional mode parameter specifies how the miner should behave if a miner in another tab is already running. The default is WMP.IF_EXCLUSIVE_TAB.
Note that the mode only affects other miners on the same origin/domain. Miners on other websites can't kill yours, nor can you kill miners on other websites.
Mode
| WMP.IF_EXCLUSIVE_TAB | The miner will only start if no other tabs are already mining. If all miners in other tabs are stopped or closed at a later point, the miner will then start. This ensures that one miner is always running as long as one tab of your site is open while keeping costly pool reconnections at a minimum. |
| WMP.FORCE_EXCLUSIVE_TAB | The miner will always start and immediately kill all miners in other tabs that have not specified WMP.FORCE_MULTI_TAB. |
| WMP.FORCE_MULTI_TAB | The miner will always start. It will not announce its presence to other tabs, will not kill any other miners and can't be killed by other miners. This mode is used by the captcha and shortlinks. |
Commentaires
Enregistrer un commentaire