Skip to content
2 changes: 1 addition & 1 deletion webxdc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface Webxdc<StatusPayload, EphemeralPayload = any> {
* Send an ephemeral update to another peer.
* @param payload Data that can be serialized with `JSON.stringify`.
*
* @returns resolves when (TODO is it when it is sent or registered by core?)
* @returns A promise that resolves when a peer connection is established. Ephemeral messages can then be sent with `sendEphemeral`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you paying attention? this is sendEphemeralUpdate, your edit seems like it was meant for setEphemeralUpdateListener

*/
sendEphemeralUpdate(payload: EphemeralPayload): Promise<void>;

Expand Down