-
> Every proxy created by Comlink has the `[releaseProxy]()` method. Calling it will detach the proxy and the exposed object from the message channel, allowing both ends to be garbage collected.
How…
-
Followed Readme instruction, cannot compile with error:
`
[!] (plugin comlink) TypeError: Cannot read property 'id' of null
TypeError: Cannot read property 'id' of null
at Object.resolveId (D:…
-
Hey,
I was about to use this awesome library in one of my projects.
In this project I want to allow apps running in cross-domain iframes to activate functionalities in the top frame.
For this to wo…
-
`index.html`:
```html
import * as Comlink from "https://unpkg.com/comlink@alpha/dist/esm/comlink.mjs";
function callback(value) {
console.log(`Result : ${value}`);
}
asyn…
-
Hi,
I am trying to create two-way communication between two web workers, both using 'Comlink Proxy's using a single `MessageChannel`.
Let's say that I have a worker running. At some point, I w…
-
Migrate the underlying HTTP package used by the comlink-python library from requests to httpx. The primary driver for the change is the desire to support asynchronous client operations for heavy workl…
-
I have this worker.
main.mjs
```
let worker = Comlink.wrap(new Worker(new URL('./worker.mjs', import.meta.url), { type: "module" }));
```
worker.mjs
```
(async () => {
let obj = {
…
-
Hi! I'm am finding that comlink will sometimes return typed-arrays as objects from my worker. However, the majority of the time comlink returns the typed-arrays as expected...
From my worker I am r…
-
I have tested this with both playground.wordpress.net and with the dev server at 127.0.0.1:5400.
I have logs to post as a gist, but in-flight wifi is failing when attempting to create a new gist. P…
-
**Update 2023-02-07:** A port for Deno is available at https://deno.land/x/comlink, when the `npm:` protocol is mature enough I will make it compatible with both Node and Deno (and Bun). My intention …