Skip to content

Commit

Permalink
Fix another location of unsupported event
Browse files Browse the repository at this point in the history
  • Loading branch information
DrEsteban committed May 22, 2024
1 parent 7462f2b commit 264bd65
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions obs-websocket-dotnet/OBSWebsocket.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -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;

}
Expand Down

0 comments on commit 264bd65

Please sign in to comment.