Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Receive message from SceneSwitcher #309

Unanswered
devock asked this question in Q&A
Discussion options

Hello. I want to receive messages from the OBS plugin SceneSwitcher, but I don't understand witch function i need to use, can you help me ? thanks

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Into logs I have the websocket operation :

18:10:16.403: [obs-websocket] [debug] [WebSocketServer::onMessage] Incoming message (decoded): 18:10:16.403: { 18:10:16.403: "d": { 18:10:16.403: "requestData": { 18:10:16.403: "requestData": { 18:10:16.403: "message": "testchange" 18:10:16.403: }, 18:10:16.403: "requestType": "AdvancedSceneSwitcherMessage", 18:10:16.403: "vendorName": "AdvancedSceneSwitcher" 18:10:16.403: }, 18:10:16.403: "requestId": "testchange - ws://localhost:4455", 18:10:16.403: "requestType": "CallVendorRequest" 18:10:16.403: }, 18:10:16.403: "op": 6 18:10:16.403: } 18:10:16.403: [obs-websocket] [debug] [WebSocketServer::onMessage] Outgoing message: 18:10:16.403: { 18:10:16.403: "d": { 18:10:16.403: "requestId": "testchange - ws://localhost:4455", 18:10:16.403: "requestStatus": { 18:10:16.403: "code": 100, 18:10:16.403: "result": true 18:10:16.403: }, 18:10:16.403: "requestType": "CallVendorRequest", 18:10:16.403: "responseData": { 18:10:16.403: "requestType": "AdvancedSceneSwitcherMessage", 18:10:16.403: "responseData": {}, 18:10:16.403: "vendorName": "AdvancedSceneSwitcher" 18:10:16.403: } 18:10:16.403: }, 18:10:16.403: "op": 7 18:10:16.403: }

But I don't intercept it width VendorEvent :

obs.on('VendorEvent', ({vendorName, eventType, eventData}) => { console.log(eventType) });

You must be logged in to vote
1 reply
Comment options

t2t2 Oct 15, 2022
Maintainer

That log doesn't include any events being sent, only obs-websocket receiving a CallVendorRequest request that it responds to

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

AltStyle によって変換されたページ (->オリジナル) /