colyseus / colyseus-haxe

⚔ Colyseus Multiplayer SDK for Haxe

Home Page:https://docs.colyseus.io/getting-started/haxe-client/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receiving seat reservations from messages

kotwys opened this issue · comments

When I send a seat reservation to a client via message, it comes to them like this (it looks like that fields and values are jumbled):

Object
  null: null
  room:
    0: 1
    116: null
    clients: 1
    createdAt: null
    null: null

Obviously they can’t consume that and the logs say the seat reservation is expired.

If I send it encoded in JSON and decoded back, everything works. Maybe this is because reservations have a recursive structure (as I could find out console.logging it).

Thanks for reporting @kotwys, it turns out the msgpack decoder wasn't supporting "undefined" and Date extension types. I've added some tests for decoding these types.

This weekend I've been working on a GitHub workflow to automatically publish packages to haxelib as well! https://github.com/endel/haxelib-publish-github-actions-test

So this commit resulted in both creating:

Let me know if you face any other issues! Cheers!