Class: Peer

peer/module~ Peer

Module main class

new Peer(app, config)

Create the module
Parameters:
Name Type Description
app App The application
config object Configuration

Members


<static> provides :string

Service name is 'modules.peer'
Type:
  • string

<static> requires :Array.<string>

Dependencies as constructor arguments
Type:
  • Array.<string>

Methods


<async> register(server)

Register with the server
Parameters:
Name Type Description
server object Server instance
Returns:
Type
Promise