You can find an example how to send Advanced Scene Swwitcher OBS websocket vendor requests in the stream deck plugin for Advanced Scene Switcher using obs-websocket-js version 5.0.6:
A Stream Deck plugin to enable communication with the Advanced Scene Switcher plugin for OBS - WarmUpTill/advanced-scene-switcher-streamdeck-plugin
github.com
Just note that in the above the example the message is "StreamDeckKeyEvent" while you probably want to use "AdvancedSceneSwitcherMessage" if you are intending to use these types of actions / conditions.
View attachment 111636
Note that it is also possible to receive obs websocket vendor "events" from the Advanced Scene Switcher, if you want to "send out" a message from the plugin to your JS application.
The vendor event name would be "AdvancedSceneSwitcherEvent" in this case and it would correspond to these conditions / actions:
View attachment 111637
The StreamDeck plugin also has an example on how to handle vendor events:
A Stream Deck plugin to enable communication with the Advanced Scene Switcher plugin for OBS - WarmUpTill/advanced-scene-switcher-streamdeck-plugin
github.com
(Note that in the above example "AdvancedSceneSwitcherStarted" and "AdvancedSceneSwitcherStopped" are being demonstrated instead of "AdvancedSceneSwitcherEvent")
A few more examples regarding the general structure of the messages can be found here in the wiki:
An automation tool for OBS Studio. Contribute to WarmUpTill/SceneSwitcher development by creating an account on GitHub.
github.com
I hope that helped!
And sorry for not replying here in such a long time!