diff --git a/js/src/WebsocketConnection/index.d.ts b/js/src/WebsocketConnection/index.d.ts index dddaa38b..b222d8a8 100644 --- a/js/src/WebsocketConnection/index.d.ts +++ b/js/src/WebsocketConnection/index.d.ts @@ -17,6 +17,12 @@ export interface WebsocketSession { // Cancels the subscription. unsubscribe(info: SubscriberInfo): Promise; close(): Promise; + + /** + * @param payload The binary data to send + * @returns The id assigned to the binary attachment + */ + addAttachment(payload: Blob): string } export interface IWebsocketConnectionInitialValues {