Skip to content

Commit

Permalink
doc(ts): WebsocketSession addAttachment definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdaisj committed Apr 19, 2022
1 parent 647dc7d commit e870635
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 e870635

Please sign in to comment.