andywer / andywer/threads.js

[QUESTION]: Custom message serializers

Open
#356 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
3.5k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.