communication - ZeMA-gGmbH/NoPE-JS GitHub Wiki
Namespace: communication
Author
Martin Karkowski
Email
Create
date 2021-08-04 15:30:10
Modify
date 2022-01-10 16:01:15
Desc
[description]
Namespaces
Classes
Variables
validLayers
Const validLayers: Object
Type declaration
| Name | Type |
|---|---|
event |
typeof Bridge |
io-client |
typeof IoSocketClientLayer |
io-server |
typeof ioSocketServerLayer |
mqtt |
typeof MQTTLayer |
Functions
getLayer
getLayer(layer, parameter?, logger?): ICommunicationBridge
Function, that will create a Bridge, based on the provided function. Based on the parameter "layer", a corresponding layer or mirror will be added to the bridge. You can provide custom parameters using the parameter "parameter". This will receive either the uri or ports. Additionally you are able to assign a log-level to the bridge.
Export
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
layer |
validLayerOrMirror |
undefined |
the layer to add |
parameter? |
string | number |
null |
the parameter required for the additonal layer / mirror |
logger? |
ValidLoggerDefinition |
false |
the level of the debugger |
Returns
{ICommunicationBridge}