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

obs websocket vendor event, cant get the detail of an event if it's an array #378

Open
Grummfy opened this issue Oct 2, 2022 · 0 comments

Comments

@Grummfy
Copy link

Grummfy commented Oct 2, 2022

Operating System Info

Ubuntu 22.04

Other OS

No response

OBS Studio Version

Other

OBS Studio Version (Other)

27.2.4

OBS Studio Log URL

https://gist.github.com/Grummfy/847649e31535add040f7d84b24d7b96a

OBS Studio Crash Log URL

No response

Expected Behavior

receiving event.detail with the data send.

Current Behavior

if the data is an array, the event.detail is not correctly setted.

Steps to Reproduce

From a client send a vendor request in obs to the vendor (with CallVendorRequest to vendorName obs-browser) with data as array or object (in js type) and you have the reproduction.

In the log, we can see the message I have send.

In one the event_data is

 {
  "Henry": {
    "is_chat": true,
    "point": 4,
    "pseudo": "Henry"
  },
  "Wally": {
    "is_chat": false,
    "point": 0,
    "pseudo": "Wally"
  }
}

this succeed with event.detail containing the information.

[
  {
    "is_chat": true,
    "point": 4,
    "pseudo": "Henry"
  },
  {
    "is_chat": false,
    "point": 0,
    "pseudo": "Wally"
  }
]

this fail with event.detail empty.

Anything else we should know?

No response

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

No branches or pull requests

1 participant