This commit is contained in:
Fre
2020-08-21 12:27:31 +02:00
parent bca37228d9
commit de13f49bb6
5 changed files with 1 additions and 25 deletions

View File

@@ -23,14 +23,6 @@ namespace ElectronNET.API
{
Console.WriteLine("BridgeConnector connected!");
});
_socket.On(Socket.EVENT_CONNECT_ERROR, (args) =>
{
Console.WriteLine("Socket error! {0}", args??"no args");
});
_socket.On(Socket.EVENT_DISCONNECT, (args) =>
{
Console.WriteLine("Socket Disconnect! {0}", args ?? "no args");
});
}
}
}
@@ -41,7 +33,6 @@ namespace ElectronNET.API
if (_socket == null && !HybridSupport.IsElectronActive)
{
_socket = IO.Socket(new Uri("http://localhost"), new IO.Options { AutoConnect = false });
Console.WriteLine("Electron not active. Socket created.");
}
}
}

View File

@@ -40,7 +40,6 @@ This package contains the API to access the "native" electron API.</Description>
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="SocketIoClientDotNet" Version="1.0.5" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
</ItemGroup>

View File

@@ -1,6 +1,4 @@
using Quobject.SocketIoClientDotNet.Client;
namespace ElectronNET.API
namespace ElectronNET.API
{
/// <summary>
///
@@ -20,10 +18,5 @@ namespace ElectronNET.API
return !string.IsNullOrEmpty(BridgeSettings.SocketPort);
}
}
/// <summary>
///
/// </summary>
public static Socket Socket { get { return BridgeConnector.Socket; } }
}
}