[英]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我设计了一个有效负载调度,它正在生成一个啁啾声,但在接收器端,我如何在将声音或啁啾声解码到网页中的数据时合并onReceiving
& onReceived
事件
You can pass in any function to the ChirpSDK when instantiating, which are called when data has started/finished being received.您可以在实例化时将任何 function 传递给 ChirpSDK,当数据开始/完成接收时调用。 These functions could do anything you like, such as dispatch an event.这些函数可以做任何你喜欢的事情,比如发送一个事件。 See https://developers.chirp.io/docs/getting-started/wasm请参阅https://developers.chirp.io/docs/getting-started/wasm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.