Reversed obs-websocket error text and reported error string order in call to WsClientErrorMessage();
Other errors have the more detailed inner exception second. My error string is much more detailed than the obs-websocket error message so should be second too.
Modified error handling so that auto-reconnect is disabled if an error is in response to an Authenticate request.
[x] Commit 5687a20 changes connection details on changing of connection preferences:
[x] Extended ObsWsClient so an instance can be replaced with new connection parameters.
[x] Reconnect after changing connection details if auto-reconnect is enabled.
[x] Improved some error handling.
[x] Commit eee4430 created a connection menu item:
[x] Duplicated preference items in menu where suitable, such as auto-reconnect.
[x] Added Reconnect and Disconnect items to the menu.
Background
When connecting to obs-websocket that requires authentication, no connection error is reported.
Whilst it is true that a connection is established, the connection is useless.
User action is required to resolve the error, so it should be treated like an HTTP 4xx type error.
The authentication required text should propagate to the UI, and automatic reconnection should be disabled until connection preferences are next saved.
Feature Branch
Feature branch has been merged into master.
Progress
[x] Added Reconnect and Disconnect items to the menu.
Background
When connecting to obs-websocket that requires authentication, no connection error is reported.
Whilst it is true that a connection is established, the connection is useless.
User action is required to resolve the error, so it should be treated like an HTTP 4xx type error.
The authentication required text should propagate to the UI, and automatic reconnection should be disabled until connection preferences are next saved.