implement auto port support for socket bridge communication

This commit is contained in:
Gregor Biswanger
2017-10-06 05:04:56 +02:00
parent d3fc1c8657
commit 47996a76d9
14 changed files with 108 additions and 1463 deletions

View File

@@ -19,7 +19,7 @@ namespace ElectronNET.API
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
_socket = IO.Socket("http://localhost:3000");
_socket = IO.Socket("http://localhost:" + BridgeSettings.SocketPort);
_socket.On(Socket.EVENT_CONNECT, () =>
{
Console.WriteLine("Verbunden!");