{"action":"created","issue":{"url":"https://api.github.com/repos/Palakis/obs-websocket/issues/181","repository_url":"https://api.github.com/repos/Palakis/obs-websocket","labels_url":"https://api.github.com/repos/Palakis/obs-websocket/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/Palakis/obs-websocket/issues/181/comments","events_url":"https://api.github.com/repos/Palakis/obs-websocket/issues/181/events","html_url":"https://github.com/Palakis/obs-websocket/issues/181","id":290989258,"number":181,"title":"Problem with the event PreviewSceneChanged","user":{"login":"illusdidi","id":29753815,"avatar_url":"https://avatars1.githubusercontent.com/u/29753815?v=4","gravatar_id":"","url":"https://api.github.com/users/illusdidi","html_url":"https://github.com/illusdidi","followers_url":"https://api.github.com/users/illusdidi/followers","following_url":"https://api.github.com/users/illusdidi/following{/other_user}","gists_url":"https://api.github.com/users/illusdidi/gists{/gist_id}","starred_url":"https://api.github.com/users/illusdidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illusdidi/subscriptions","organizations_url":"https://api.github.com/users/illusdidi/orgs","repos_url":"https://api.github.com/users/illusdidi/repos","events_url":"https://api.github.com/users/illusdidi/events{/privacy}","received_events_url":"https://api.github.com/users/illusdidi/received_events","type":"User","site_admin":false},"labels":[{"id":458208959,"url":"https://api.github.com/repos/Palakis/obs-websocket/labels/bug","name":"bug","color":"e99695","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-01-23T20:54:35Z","updated_at":"2018-03-20T01:21:51Z","closed_at":null,"author_association":"NONE","body":"##### Issue type\r\nEvent not triggered ?\r\n\r\n##### Description\r\nHi,\r\nI think there is a bug with the event PreviewSceneChanged. When I switch the preview scene on studio mode in OBS, the event is correctly triggered. Here is what the websocket connexion receives :\r\n`{ \"scene-name\": \"1_Intro\", \"sources\": [], \"update-type\": \"PreviewSceneChanged\" }`\r\nBut when I switch the preview scene on my webpage using obs-websocket-js, the preview scene is switching but the event is not triggered and the websocket connexion receives nothing.\r\n\r\nAnd when I switch the current live scene on my webpage, the event PreviewSceneChanged is triggered because the websocket connexion receives these 3 messages :\r\n`{ \"transition-name\": \"Coupure\", \"update-type\": \"SwitchTransition\" }`\r\n`{ \"scene-name\": \"1_Intro\", \"sources\": [], \"update-type\": \"SwitchScenes\" }`\r\n`{ \"scene-name\": \"4_End\", \"sources\": [], \"update-type\": \"PreviewSceneChanged\" }`\r\n\r\n(I hope that is clear)\r\n\r\n##### Steps to reproduce and other useful info\r\nI used http://www.websocket.org/echo.html to track the websocket messages.\r\n\r\n##### Technical information\r\n- **Operating System** : Windows 10 Home x64 16299.125\r\n- **OBS Studio version** : 21.0.1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Palakis/obs-websocket/issues/comments/374440030","html_url":"https://github.com/Palakis/obs-websocket/issues/181#issuecomment-374440030","issue_url":"https://api.github.com/repos/Palakis/obs-websocket/issues/181","id":374440030,"user":{"login":"haganbmj","id":15820761,"avatar_url":"https://avatars0.githubusercontent.com/u/15820761?v=4","gravatar_id":"","url":"https://api.github.com/users/haganbmj","html_url":"https://github.com/haganbmj","followers_url":"https://api.github.com/users/haganbmj/followers","following_url":"https://api.github.com/users/haganbmj/following{/other_user}","gists_url":"https://api.github.com/users/haganbmj/gists{/gist_id}","starred_url":"https://api.github.com/users/haganbmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haganbmj/subscriptions","organizations_url":"https://api.github.com/users/haganbmj/orgs","repos_url":"https://api.github.com/users/haganbmj/repos","events_url":"https://api.github.com/users/haganbmj/events{/privacy}","received_events_url":"https://api.github.com/users/haganbmj/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T01:21:51Z","updated_at":"2018-03-20T01:21:51Z","author_association":"CONTRIBUTOR","body":"Nice, that'll be good once it's ready."}}
{"actor":{"display_login":"haganbmj"}}