Preparing search index...
The search index is not available
desktopJS
desktopJS
@morgan-stanley/desktopjs-electron
ElectronMessageBus
Class ElectronMessageBus
Hierarchy
ElectronMessageBus
Implements
MessageBus
Index
Constructors
constructor
Properties
ipc
Methods
publish
subscribe
unsubscribe
Constructors
constructor
new
Electron
Message
Bus
(
ipc
:
any
, browserWindow
:
any
)
:
ElectronMessageBus
Parameters
ipc:
any
browserWindow:
any
Returns
ElectronMessageBus
Properties
ipc
ipc
:
any
Methods
publish
publish
<
T
>
(
topic
:
string
, message
:
T
, options
?:
MessageBusOptions
)
:
Promise
<
void
>
Type Parameters
T
Parameters
topic:
string
message:
T
Optional
options:
MessageBusOptions
Returns
Promise
<
void
>
subscribe
subscribe
<
T
>
(
topic
:
string
, listener
:
(
(
event
:
any
, message
:
T
)
=>
void
)
, options
?:
MessageBusOptions
)
:
Promise
<
MessageBusSubscription
>
Type Parameters
T
Parameters
topic:
string
listener:
(
(
event
:
any
, message
:
T
)
=>
void
)
(
event
:
any
, message
:
T
)
:
void
Parameters
event:
any
message:
T
Returns
void
Optional
options:
MessageBusOptions
Returns
Promise
<
MessageBusSubscription
>
unsubscribe
unsubscribe
(
subscription
:
MessageBusSubscription
)
:
Promise
<
any
>
Parameters
subscription:
MessageBusSubscription
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Modules
desktopJS
@morgan-
stanley/desktopjs
Default
Object
Transform
@morgan-
stanley/desktopjs-
electron
@morgan-
stanley/desktopjs-
openfin
Electron
Message
Bus
constructor
ipc
publish
subscribe
unsubscribe