Appearance
Home > resol-vbus-core-nodejs > NetLiveTransceiverBridge
NetLiveTransceiverBridge class
A helper class that pumps data between a socket and a VBus live transceiver.
Signature:
typescript
export declare class NetLiveTransceiverBridge
Constructors
Constructor | Modifiers | Description |
---|---|---|
Construct a new bridge. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Buffer | A temporary buffer. | ||
The live transceiver. | |||
'command' | 'data' | 'destroyed' | The current mode. | ||
((err: unknown) => void) | null | The function to reject the active | ||
((line: string) => void) | null | The function to resolve the active | ||
net.Socket | The socket. | ||
(() => void) | null | The event handler for the socket's |
Methods
Method | Modifiers | Description |
---|---|---|
Process the data from the internal buffer. | ||
Destroy the bridge. | ||
Read a line from the socket's incoming data. | ||
Switch from command to data mode. |