🌘 comlink - npm
➤ Comlink的API和使用示例
https://www.npmjs.com/package/comlink
Comlink是一個小型的庫,將postMessage和WebWorkers的使用變得更加開發者友好。它提供了一個RPC實現,使得兩個線程之間的值可以像本地值一樣使用。它還支持回調、SharedWorker和其他功能。
+ 這個庫看起來非常有用,可以幫助我更好地使用WebWorkers和postMessage。
+ Comlink的RPC實現似乎很方便,我可以輕鬆地在不同線程之間共享值。
#npm #WebWorkers #RPC #postMessage #ES6 Proxies
comlink

Comlink makes WebWorkers enjoyable. Latest version: 4.4.1, last published: 6 months ago. Start using comlink in your project by running `npm i comlink`. There are 290 other projects in the npm registry using comlink.

npm
Magecart Attack Convincingly Hijacks PayPal Transactions at Checkout - New credit-card skimmer uses postMessage to make malicious process look authentic to victims to st... https://threatpost.com/magecart-hijacks-paypal-transactions/161697/ #creditcardskimmer #credentialtheft #onlineshopping #affablekraut #threatactors #websecurity #postmessage #e-commerce #magecart #twitter #paypal #hacks
Magecart Attack Convincingly Hijacks PayPal Transactions at Checkout

New credit-card skimmer uses postMessage to make malicious process look authentic to victims to steal payment data.

Threatpost - English - Global - threatpost.com

I was hoping #Spotify also offered a #postMessage #JavaScript #API to their 'Play Button' embed client, but it looks like they still don't, and that it's no longer planned?
«Playback can only be triggered by the user clicking the button. This means that:
- The Play button does not have any observable events, nor does it listen for any.
- Autoplay is not an option on the Play button widget»
https://developer.spotify.com/documentation/widgets/guides/adding-a-spotify-play-button/

which is a shame as I was hoping to use that for another side project.

#coding

Adding a Spotify Play Button | Spotify for Developers

Music, meet code. Powerful APIs, SDKs and widgets for simple and advanced applications.