Constructors
constructor
- new Connection(cluster: string, privkey: Uint8Array, keypair?: DesigKeypair): Connection
-
Parameters
-
cluster: string
-
privkey: Uint8Array
-
Properties
Readonly
cluster
cluster: string
Optional
Readonly
keypair
Readonly
privkey
privkey: Uint8Array
Accessors
index
- get index(): string
-
Returns string
owner
- get owner(): string
-
Returns string
Methods
on
- on(event: EventStreaming, param: string, callback: ((id: string, er?: string) => void)): (() => void)
-
Parameters
-
-
param: string
-
callback: ((id: string, er?: string) => void)
-
- (id: string, er?: string): void
-
Parameters
-
id: string
-
Optional
er: string
Returns void
Returns (() => void)
Event streaming