Skip to content

Commit

Permalink
Merge pull request #96 from Julesdevops/add-attachment-ts-def
Browse files Browse the repository at this point in the history
doc(ts): WebsocketSession addAttachment definition
  • Loading branch information
jourdain authored Apr 19, 2022
2 parents 647dc7d + e870635 commit f9e2492
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/src/WebsocketConnection/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export interface WebsocketSession {
// Cancels the subscription.
unsubscribe(info: SubscriberInfo): Promise<void>;
close(): Promise<void>;

/**
* @param payload The binary data to send
* @returns The id assigned to the binary attachment
*/
addAttachment(payload: Blob): string
}

export interface IWebsocketConnectionInitialValues {
Expand Down

0 comments on commit f9e2492

Please sign in to comment.