Skip to content

Migrating to new version of colyseus -> .onAdd broke on the client side (pure js) #831

Closed Answered by endel
AndadH asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AndadH, nice to see you're upgrading to latest version! The syntax for schema callbacks had to change in order to decouple the encoding/decoding internally. (Now you don't get .onAdd() auto-completions on the server, which were never supported, for example.)

See docs here: https://docs.colyseus.io/state/callbacks

Let me know if you have any issues during the migration! 🙏

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AndadH
Comment options

@endel
Comment options

@AndadH
Comment options

Answer selected by AndadH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants