andywer / andywer/threads.js

[QUESTION]: Custom message serializers

オープン
#356 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
3.5k
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。