mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-11 05:34:34 +00:00
20 lines
475 B
C#
20 lines
475 B
C#
using Quobject.SocketIoClientDotNet.Client;
|
|
using System;
|
|
|
|
namespace ElectronNET.API
|
|
{
|
|
internal static class BridgeConnector
|
|
{
|
|
public static Socket Socket;
|
|
|
|
public static void StartConnection()
|
|
{
|
|
Socket = IO.Socket("http://localhost:" + BridgeSettings.SocketPort);
|
|
Socket.On(Socket.EVENT_CONNECT, () =>
|
|
{
|
|
Console.WriteLine("BridgeConnector connected!");
|
|
});
|
|
}
|
|
}
|
|
}
|