Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit cbf9c68

Browse files
committed
Updates cluster module for Node.js v14
1 parent 2326995 commit cbf9c68

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/current/src/main/scala/io/scalajs/nodejs/cluster/ClusterSettings.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ trait ClusterSettings extends js.Object {
2323
/** <Boolean> whether or not to send output to parent's stdio. (Default=false) */
2424
var silent: Boolean = js.native
2525

26+
/**
27+
* Specify the kind of serialization used for sending messages between processes.
28+
* Possible values are 'json' and 'advanced'. See Advanced Serialization for more details.
29+
* Default: 'json'.
30+
*
31+
* From Node.js v13.2.0, v12.16.0.
32+
*/
33+
var serialization: String = js.native
34+
2635
/** <Number> Sets the user identity of the process. (See setuid(2).) */
2736
var uid: UID = js.native
2837

@@ -46,6 +55,7 @@ object ClusterSettings {
4655
exec: String = null,
4756
args: js.Array[String] = null,
4857
silent: Boolean = false,
58+
serialization: String = "json",
4959
stdio: js.Array[js.Any] = null,
5060
inspectPort: Int | js.Function = null,
5161
cwd: String = null,
@@ -56,6 +66,7 @@ object ClusterSettings {
5666
settings.updateDynamic("exec")(exec)
5767
settings.updateDynamic("args")(args)
5868
settings.updateDynamic("silent")(silent)
69+
settings.updateDynamic("serialization")(serialization)
5970
settings.updateDynamic("stdio")(stdio)
6071
settings.updateDynamic("inspectPort")(inspectPort.asInstanceOf[js.Any])
6172
settings.updateDynamic("cwd")(cwd)

0 commit comments

Comments
 (0)