Endel Dreyer

Results 152 issues of Endel Dreyer

The return type of `.toJSON()` of `MapSchema` and `ArraySchema` should be respected rather than returning `any`. ![image](https://github.com/colyseus/schema/assets/130494/d95361a7-394d-4d03-be51-6de0d3ccc64a) ![image](https://github.com/colyseus/schema/assets/130494/9f5f3ca2-f646-4b49-adc0-ea2b57174036) --- This is particularly useful on React applications where `.toJSON()` can be...

bug

When an instance is re-used in many places, their callbacks are triggered only once, at places not easily predictable. **Failing test case** ```typescript class Player extends Schema { @type("number") hp:...

bug
callbacks

is there any?

experimental

This pull-request implements decoding UInt64 types. Source-code was based on [notepack.io's implementation](https://github.com/darrachequesne/notepack/blob/8a9a986c653d732f8f4ceb3ea215dc88f0ddc205/lib/decode.js#L147-L151). I've only tested on JavaScript target so far. Will test on other targets soon.

This is not really an issue. Just a room for improvement. I did a performance comparisson between `deep-diff` and `fast-json-patch` diff algorithms, and `fast-json-patch` is way faster. Would be nice...

enhancement

There's a draft on [`WebTransport`](https://wicg.github.io/web-transport/) going on, which is a successor of WebSocket that supports both reliable and unreliable communication. It's not currently usable - hopefully, it will in the...

:rocket: feature
:abacus: @colyseus/schema
:mag: research

Hi everybody, I have [been working on the upcoming version `3.0` of `@colyseus/schema`](https://github.com/colyseus/schema/tree/3.0) since last month, and I think I can finally share what's planned to land on this next...

:rocket: feature

### Context & Description When scaling the number of processes [by setting the `publicAddress` config in the server](https://docs.colyseus.io/scalability/#step-2-making-your-colyseus-processes-accessible-to-the-internet), the client will not be able to connect to the server from...

I'm wondering if it's feasible to implement `toJSON` support on msgpack-lite? `JSON.stringify()` supports handling custom `toJSON` methods, like: ```javascript function MyData () {} MyData.prototype.toJSON = function() { return { custom:...

Hey @kawanet, That's not really an issue. I just want to share that I've been doing some [benchmarks](https://github.com/endel/msgpack-benchmark) recently, and it seems that [msgpack-javascript](https://github.com/msgpack/msgpack-javascript/) and [msgpack-js-v5](http://npmjs.com/package/msgpack-js-v5) performs better in some...