using typeguards and removed useless logging
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { WebsocketTopicSubscriptionConfirmationEvent } from './topic-subscription-confirmation';
|
||||
|
||||
export interface WebsocketFailedTopicSubscriptionConfirmationEvent
|
||||
extends WebsocketTopicSubscriptionConfirmationEvent {
|
||||
success: false;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { WebsocketTopicSubscriptionConfirmationEvent } from './topic-subscription-confirmation';
|
||||
|
||||
export interface WebsocketSucceededTopicSubscriptionConfirmationEvent
|
||||
extends WebsocketTopicSubscriptionConfirmationEvent {
|
||||
success: true;
|
||||
}
|
||||
7
src/types/ws-events/topic-subscription-confirmation.ts
Normal file
7
src/types/ws-events/topic-subscription-confirmation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface WebsocketTopicSubscriptionConfirmationEvent {
|
||||
op: 'subscribe';
|
||||
req_id: string;
|
||||
conn_id: string;
|
||||
ret_msg: string;
|
||||
success: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user