andywer / andywer/threads.js

[QUESTION]: Custom message serializers

Aberta
#356 2 comentários 0 reações 0 responsáveis Ver no GitHub
question
Linguagem predominante
TypeScript
Estrelas
3.5k
Forks
173
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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!

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.