简体   繁体   中英

How can I handle ChirpSDK events with series of promises in WebAssembly

I have designed a payload dispatch which is generating a chirp but on the receiver side how can I incorporate onReceiving & onReceived events while decoding sound or chirp to my data in webpage

You can pass in any function to the ChirpSDK when instantiating, which are called when data has started/finished being received. These functions could do anything you like, such as dispatch an event. See https://developers.chirp.io/docs/getting-started/wasm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM