new Connector(app, opts)
Parameters:
Name | Type | Description |
---|---|---|
app |
Application | current application context |
opts |
Object | attach parameters opts.connector {Object} provides low level network and protocol details implementation between server and clients. |
- Implements:
Methods
-
afterStart(cb) → {Void}
-
Component lifecycle callback, afterStart
Parameters:
Name Type Description cb
function Returns:
Void- Implements:
-
start(cb) → {Void}
-
Component lifecycle callback, start
Parameters:
Name Type Description cb
function Returns:
Void- Implements:
-
stop(force, cb) → {Void}
-
Component lifecycle callback, stop
Parameters:
Name Type Description force
Boolean whether stop the component immediately cb
function Returns:
Void- Implements: