You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+74-72Lines changed: 74 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,11 @@
23
23
24
24
## Fully changed from 2.0.0
25
25
26
-
The internal implementation is event-based, which significantly improves the stability. In addition, instead of relying on generic-pools to manage the pool, we have solved the problem of third-party dependency and features that were incompatible with generic-pools through our own pooling. However, there are many API changes and some features are currently disabled. If you update to 2.0.0, please be aware of the migration progress and disabled features for the changes.
26
+
The internal implementation is event-based, which significantly improves the stability. In addition, instead of relying
27
+
on generic-pools to manage the pool, we have solved the problem of third-party dependency and features that were
28
+
incompatible with generic-pools through our own pooling. However, there are many API changes and some features are
29
+
currently disabled. If you update to 2.0.0, please be aware of the migration progress and disabled features for the
30
+
changes.
27
31
Also cluster mode client will be provided in near future.
28
32
29
33
### API Changes
@@ -33,82 +37,79 @@ After that you can use dispatcher to control pool manager.
33
37
34
38
**[ Client API ]**
35
39
36
-
- StartPuppeteerPool
37
-
40
+
- PuppeteePool
41
+
-`PuppeteerPool` is singleton class. You can use `PuppeteerPool.start` to initialize pool manager.
42
+
- PuppeteerPool.start
43
+
- Static Method
44
+
- Description: Initialize pool manager. You need to call this function to start puppeteer pool. Even if you invoke
45
+
this function multiple times with differenct arguments, it will return the first initialized instance.
38
46
- Args
39
-
- concurrencyLevel: number
40
-
- Number of context level to run tasks concurrently.
47
+
- concurrencyLevel
48
+
- Required
49
+
- number
41
50
- contextMode: ContextMode
42
-
- ContextMode.SHARED(Default): Each session will share local storage, cookies, etc.
43
-
- ContextMode.ISOLATED: Each session will have its own local storage, cookies, etc.
0 commit comments