Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.16 KB

API.md

File metadata and controls

44 lines (30 loc) · 1.16 KB

Hub

Defines the Hub service, known as @fabric/hub within the network.

Kind: global class

new Hub([settings])

Create an instance of the Hub service.

Returns: Hub - Instance of the Hub.

Param Type Description
[settings] Object Settings for the Hub instance.

hub.commit()

Finalizes the current state.

Kind: instance method of Hub

hub.start() ⇒ Hub

Start the instance.

Kind: instance method of Hub
Returns: Hub - Instance of the Hub.

hub.stop() ⇒ Hub

Stop the instance.

Kind: instance method of Hub
Returns: Hub - Instance of the Hub.