@huddle01/observer-client-sdk
Advanced tools
Comparing version 0.11.1-ea60a23.0 to 0.11.1-ec667cd.0
@@ -26,2 +26,3 @@ import { DashboardDataStreamNotification } from './protocols/DashboardMessageProtocol'; | ||
private _rows; | ||
private _reject?; | ||
constructor(config: ObserverDashboardDataStreamConfig, _channel: WebSocketConnector, _sortFn?: ((a: T, b: T) => number) | undefined); | ||
@@ -28,0 +29,0 @@ get id(): string; |
@@ -17,2 +17,3 @@ "use strict"; | ||
_rows = []; | ||
_reject; | ||
constructor(config, _channel, _sortFn) { | ||
@@ -50,3 +51,9 @@ super(); | ||
this._opened = true; | ||
let error; | ||
const listener = (err) => (error = err); | ||
this.once('streamerror', listener); | ||
await this._request('update', {}).then(() => void 0); | ||
this.off('streamerror', listener); | ||
if (error) | ||
throw new Error(error); | ||
if (this._sortFn) | ||
@@ -53,0 +60,0 @@ this._rows.sort(this._sortFn); |
{ | ||
"name": "@huddle01/observer-client-sdk", | ||
"version": "0.11.1-ea60a23.0", | ||
"version": "0.11.1-ec667cd.0", | ||
"description": "ObserverDashboardClient SDK", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
183931
3801