mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 13:44:47 +00:00
Convert main static references off of Electron into interface implementation and expose the underlying Socket for low level interaction.
This commit is contained in:
16
ElectronNET.API/ApplicationSocket.cs
Executable file
16
ElectronNET.API/ApplicationSocket.cs
Executable file
@@ -0,0 +1,16 @@
|
||||
using ElectronNET.API.Interfaces;
|
||||
using Quobject.SocketIoClientDotNet.Client;
|
||||
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapper for the underlying Socket connection
|
||||
/// </summary>
|
||||
public class ApplicationSocket : IApplicationSocket
|
||||
{
|
||||
/// <summary>
|
||||
/// Socket used to communicate with main.js
|
||||
/// </summary>
|
||||
public Socket Socket { get; internal set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user