Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix array buffer deserialization #243

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

xxshady
Copy link
Collaborator

@xxshady xxshady commented Aug 14, 2024

See same bug in v1: altmp/altv-js-module#322

import alt from '@altv/server'

alt.Events.on('test', (...data) => {
  alt.log({ data })
})

setTimeout(() => {
  // Error: Unable to deserialize cloned data due to invalid or unsupported version
  alt.Events.emit('test', new Uint8Array([1, 2, 3, 4, 5]).buffer)
}, 100)

@xxshady xxshady requested a review from xLuxy as a code owner August 14, 2024 18:14
@xxshady xxshady removed the request for review from xLuxy August 14, 2024 18:14
@xxshady xxshady merged commit 55f9507 into altmp:dev Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant