Added NightAlert project for travel kit

This commit is contained in:
2021-06-10 14:39:06 -04:00
commit d38d9e3b7e
308 changed files with 35922 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using Quobject.EngineIoClientDotNet.Client;
using Quobject.EngineIoClientDotNet.Modules;
namespace Quobject.EngineIoClientDotNet_Tests.ClientTests
{
public class Connection
{
static Connection()
{
LogManager.SetupLogManager();
}
protected static Socket.Options CreateOptions()
{
var options = new Socket.Options
{
Port = ConnectionConstants.PORT,
Hostname = ConnectionConstants.HOSTNAME
};
//log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
return options;
}
protected static Socket.Options CreateOptionsSecure()
{
var options = new Socket.Options
{
Port = ConnectionConstants.SSL_PORT,
Hostname = ConnectionConstants.HOSTNAME,
//log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
Secure = true,
IgnoreServerCertificateValidation = true
};
return options;
}
}
}