Properties
Abstract events
events: EventEmitter2
Protected Abstract interface
interface: Interface
Optional Abstract queue
queue: any
Accessors
isInitialized
isInitialized:
Methods
Abstract cancelPending
- cancelPending(): Promise<void>
Abstract disconnect
- disconnect(): Promise<void>
exchange
- exchange(msgTypeEnum: number, msg: Message): Promise<[number, Message]>
-
Parameters
-
msgTypeEnum: number
-
msg: Message
Returns Promise<[number, Message]>
Protected fromMessageBuffer
- fromMessageBuffer(buff: ByteBuffer): [number, Message]
-
Parameters
Returns [number, Message]
Abstract getEntropy
- getEntropy(length: number): Uint8Array
-
Parameters
Returns Uint8Array
Abstract initialize
- initialize(): Promise<void>
Abstract sendRaw
- sendRaw(buffer: ByteBuffer): Promise<ByteBuffer>
-
Parameters
Returns Promise<ByteBuffer>
Protected toMessageBuffer
- toMessageBuffer(msgTypeEnum: number, msg: Message): ByteBuffer
-
Parameters
-
msgTypeEnum: number
-
msg: Message
Returns ByteBuffer
Static Protected failureMessageFactory
- failureMessageFactory(e?: Error | string): ByteBuffer
-
Parameters
-
Optional e: Error | string
Returns ByteBuffer