Share via


SendMessageOperation class

Constructors

SendMessageOperation(Promise<string>, (update: string) => void)

Properties

completed

When completed is false onMessageReceived and sendUpdate will be visible. When completed is true then these are hidden.

onMessageReceived
resultPromise
sendUpdate

Constructor Details

SendMessageOperation(Promise<string>, (update: string) => void)

new SendMessageOperation(resultPromise: Promise<string>, sendUpdate: (update: string) => void)

Parameters

resultPromise

Promise<string>

sendUpdate

(update: string) => void

Property Details

completed

When completed is false onMessageReceived and sendUpdate will be visible. When completed is true then these are hidden.

completed: boolean

Property Value

boolean

onMessageReceived

onMessageReceived: undefined | (message: string) => void

Property Value

undefined | (message: string) => void

resultPromise

resultPromise: Promise<string>

Property Value

Promise<string>

sendUpdate

sendUpdate: (update: string) => void

Property Value

(update: string) => void