@haechi-labs/henesis-provider
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -6,2 +6,14 @@ # Change Log | ||
# [1.0.0-beta.5](https://github.com/HAECHI-LABS/henesis-sdk-js/compare/v1.0.0-beta.3...v1.0.0-beta.5) (2019-10-10) | ||
### Features | ||
* add authentication token and bootstrap transaction tracker ([6fc4b20](https://github.com/HAECHI-LABS/henesis-sdk-js/commit/6fc4b20)) | ||
* add heartbeat logic at provider [#29](https://github.com/HAECHI-LABS/henesis-sdk-js/issues/29) ([6797ad1](https://github.com/HAECHI-LABS/henesis-sdk-js/commit/6797ad1)) | ||
# [1.0.0-beta.4](https://github.com/HAECHI-LABS/henesis-sdk-js/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2019-10-04) | ||
@@ -8,0 +20,0 @@ |
@@ -19,3 +19,3 @@ import { w3cwebsocket as W3CWebsocket } from "websocket"; | ||
connected(): boolean; | ||
subscribe(subscriptionId: string, subscribeMethod: string, subscriptionMethod: string, parameters: any[]): Promise<string>; | ||
subscribe(subscriptionId: string, subscribeMethod: string, topic: string, parameters: any[]): Promise<string>; | ||
send(method: string, parameters: any[]): Promise<any>; | ||
@@ -22,0 +22,0 @@ sendAsync(method: string, parameters: any[]): Promise<void>; |
@@ -28,4 +28,4 @@ "use strict"; | ||
} | ||
async subscribe(subscriptionId, subscribeMethod, subscriptionMethod, parameters) { | ||
parameters.unshift(subscriptionId, subscriptionMethod); | ||
async subscribe(subscriptionId, subscribeMethod, topic, parameters) { | ||
parameters.unshift(subscriptionId, topic); | ||
await this.send(subscribeMethod, parameters); | ||
@@ -32,0 +32,0 @@ this.subscriptions.set(subscriptionId, { |
@@ -19,3 +19,3 @@ import { IClientConfig } from "websocket"; | ||
sendAsync(method: string, parameters: any[]): Promise<void>; | ||
subscribe(subscriptionId: string, subscribeMethod: string, subscriptionMethod: string, parameters: any[]): Promise<string>; | ||
subscribe(subscriptionId: string, subscribeMethod: string, topic: string, parameters: any[]): Promise<string>; | ||
unsubscribe(subscriptionId: string, unsubscribeMethod: string): Promise<any>; | ||
@@ -22,0 +22,0 @@ getSubscriptionId(subscriptionId: any): string; |
{ | ||
"name": "@haechi-labs/henesis-provider", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "henesis-provider", | ||
@@ -42,3 +42,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "ac8ddda658ad548a086818bd8541d280f97a7179" | ||
"gitHead": "c611a2780da31e2508834ee1fb62fb49fc8583e8" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37435