andywer / andywer/threads.js

[QUESTION]: Custom message serializers

Đang mở
#356 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
TypeScript
Star
3.5k
Fork
173
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.