You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been using msgpackr in the past,
Now I want to switch to cbor-x.
in msgpackr, i add extension like this
addExtension({
Class: MyCustomClass,
type: 12,
read: function(data) {
Object.setPrototypeOf(data, MyCustomClass.prototype)
return data
},
write: function(data) {
return data
}
})
// it is work good
Hi, I have been using msgpackr in the past,
Now I want to switch to cbor-x.
in msgpackr, i add extension like this
but in cbor-x
How can I make it work like msgpackr?
The text was updated successfully, but these errors were encountered: