andywer / andywer/threads.js

[QUESTION]: Custom message serializers

Offen
#356 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
TypeScript
Sterne
3.5k
Forks
173
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,

I was reading the topic about Custom message serializers.

And I had a question.

If I am passing an object with the following structure.

```
{
id: "string",
getFunction: function() {
return "something"
}
}
```

I am not sure that I understand how I would use that feature in order to make sure that in the Worker I am able to call the `getFunction` method.

Is there a working example somewhere I can read upon with a scenario similar to this?

Thanks!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.