Skip to content

Commit de13f49

Browse files
FreFre
authored andcommitted
PR
1 parent bca3722 commit de13f49

File tree

5 files changed

+1
-25
lines changed

5 files changed

+1
-25
lines changed

ElectronNET.API/BridgeConnector.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ public static Socket Socket
2323
{
2424
Console.WriteLine("BridgeConnector connected!");
2525
});
26-
_socket.On(Socket.EVENT_CONNECT_ERROR, (args) =>
27-
{
28-
Console.WriteLine("Socket error! {0}", args??"no args");
29-
});
30-
_socket.On(Socket.EVENT_DISCONNECT, (args) =>
31-
{
32-
Console.WriteLine("Socket Disconnect! {0}", args ?? "no args");
33-
});
3426
}
3527
}
3628
}
@@ -41,7 +33,6 @@ public static Socket Socket
4133
if (_socket == null && !HybridSupport.IsElectronActive)
4234
{
4335
_socket = IO.Socket(new Uri("http://localhost"), new IO.Options { AutoConnect = false });
44-
Console.WriteLine("Electron not active. Socket created.");
4536
}
4637
}
4738
}

ElectronNET.API/ElectronNET.API.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ This package contains the API to access the "native" electron API.</Description>
4040
<PrivateAssets>all</PrivateAssets>
4141
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4242
</PackageReference>
43-
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
4443
<PackageReference Include="SocketIoClientDotNet" Version="1.0.5" />
4544
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
4645
</ItemGroup>

ElectronNET.API/HybridSupport.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Quobject.SocketIoClientDotNet.Client;
2-
3-
namespace ElectronNET.API
1+
namespace ElectronNET.API
42
{
53
/// <summary>
64
///
@@ -20,10 +18,5 @@ public static bool IsElectronActive
2018
return !string.IsNullOrEmpty(BridgeSettings.SocketPort);
2119
}
2220
}
23-
24-
/// <summary>
25-
///
26-
/// </summary>
27-
public static Socket Socket { get { return BridgeConnector.Socket; } }
2821
}
2922
}

ElectronNET.CLI/done.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

ElectronNET.CLI/updatetool.ps1

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)