Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
chore: updated comment for Subscription Type and updated JSDoc for publish
ankitsridhar164aad8d36a999
diff --git a/packages/hoppscotch-backend/src/subscription-handler.ts b/packages/hoppscotch-backend/src/subscription-handler.tsindex f07e62c89..fba5551a4 100644--- a/packages/hoppscotch-backend/src/subscription-handler.ts+++ b/packages/hoppscotch-backend/src/subscription-handler.ts@@ -6,7 +6,7 @@ import { ModuleTypes } from './types/module-types';// Custom generic type to indicate the type of moduletype ModuleType = PrimitiveTypes | ModuleTypes;-// Contains constants for the subscription types we send to pubsub service+// Contains constants for the subscription types we use in Subscription Handlerenum SubscriptionType {Created = 'created',Updated = 'updated',@@ -20,7 +20,8 @@ export class SubscriptionHandler {/*** Publishes a subscription using the pubsub module- * @param topic a string containing the module name, a uid and the type of subscription+ * @param topic a string containing the module name, an uid and the type of subscription+ * @param subscriptionType type of subscription being called* @param moduleType type of the module model being called* @returns a promise of type void*/