@e-techsolutions/e-baas-sdk 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { Socket } from 'socket.io-client';
|
|
3
2
|
import EventEmitter from 'eventemitter3';
|
|
4
3
|
|
|
5
4
|
interface HttpClientConfig {
|
|
@@ -601,7 +600,7 @@ declare class RealtimeChannel extends EventEmitter {
|
|
|
601
600
|
private joinedOnce;
|
|
602
601
|
private state;
|
|
603
602
|
private subscriptions;
|
|
604
|
-
constructor(topic: string, socket:
|
|
603
|
+
constructor(topic: string, socket: any);
|
|
605
604
|
subscribe(callback?: (status: 'SUBSCRIBED' | 'CHANNEL_ERROR' | 'TIMED_OUT' | 'CLOSED') => void): RealtimeChannel;
|
|
606
605
|
onPostgresChanges(filter: PostgresChangesFilter, callback: (payload: RealtimeEvent) => void): ChannelSubscription;
|
|
607
606
|
onBroadcast(filter: BroadcastFilter, callback: (payload: any) => void): ChannelSubscription;
|
|
@@ -623,6 +622,7 @@ declare class RealtimeChannel extends EventEmitter {
|
|
|
623
622
|
}
|
|
624
623
|
|
|
625
624
|
declare class RealtimeClient {
|
|
625
|
+
private socketAdapter;
|
|
626
626
|
private socket;
|
|
627
627
|
private url;
|
|
628
628
|
private apiKey;
|
|
@@ -642,7 +642,7 @@ declare class RealtimeClient {
|
|
|
642
642
|
getConnectionState(): RealtimeConnectionState;
|
|
643
643
|
onConnectionStateChange(callback: (state: RealtimeConnectionState) => void): () => void;
|
|
644
644
|
private setupHeartbeat;
|
|
645
|
-
_getSocket():
|
|
645
|
+
_getSocket(): any;
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
interface FunctionInvokeOptions {
|