toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-node
/
node.childProcess
/
ChildProcess
/
emit
emit
fun
emit
(
event
:
String
,
vararg
args
:
Any
?
)
:
Boolean
(
source
)
fun
emit
(
event
:
Symbol
,
vararg
args
:
Any
?
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.CLOSE
,
code
:
Double
?
,
signal
:
Signals
?
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.DISCONNECT
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.ERROR
,
err
:
JsError
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.EXIT
,
code
:
Double
?
,
signal
:
Signals
?
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.MESSAGE
,
message
:
Serializable
,
sendHandle
:
SendHandle
)
:
Boolean
(
source
)
fun
emit
(
event
:
ChildProcessEvent.SPAWN
,
listener
:
(
)
->
Unit
)
:
Boolean
(
source
)