diff --git a/obs-websocket-dotnet/OBSWebsocket.cs b/obs-websocket-dotnet/OBSWebsocket.cs index 06b572a..4099f7c 100644 --- a/obs-websocket-dotnet/OBSWebsocket.cs +++ b/obs-websocket-dotnet/OBSWebsocket.cs @@ -1,16 +1,15 @@ using System; +using System.Collections.Concurrent; +using System.Net.WebSockets; using System.Security.Cryptography; using System.Text; -using Newtonsoft.Json.Linq; using System.Threading.Tasks; -using Newtonsoft.Json; -using System.Collections.Concurrent; -using System.Net.WebSockets; -using Websocket.Client; -using OBSWebsocketDotNet.Communication; -using Websocket.Client.Logging; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using OBSWebsocketDotNet.Communication; +using Websocket.Client; namespace OBSWebsocketDotNet { @@ -201,6 +200,8 @@ private void WebsocketMessageHandler(object sender, ResponseMessage e) break; default: // Unsupported message type + Logger?.LogWarning($"Unsupported message type: {msg.OperationCode}"); + UnsupportedEvent?.Invoke(this, new Types.Events.UnsupportedEventArgs(msg.OperationCode.ToString(), body)); break; }