Cook in main service defaults
This commit is contained in:
@@ -23,6 +23,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
||||
{
|
||||
public const string LoporritServer = "Loporrit Main Server";
|
||||
public const string LoporritServiceUri = "wss://lop-sync.com";
|
||||
public const string LoporritServiceHubUri = "wss://hub.lop-sync.com/mare";
|
||||
public const string LoporritServiceUriOld = "wss://loporrit.us.to";
|
||||
public const string MainServer = "Lunae Crescere Incipientis (Central Server EU)";
|
||||
public const string MainServiceUri = "wss://maresynchronos.com";
|
||||
|
||||
@@ -93,6 +93,15 @@ public class HubFactory : MediatorSubscriberBase
|
||||
{
|
||||
defaultConfig = _cachedConfig;
|
||||
}
|
||||
else if (_serverConfigurationManager.CurrentApiUrl == ApiController.LoporritServiceUri)
|
||||
{
|
||||
defaultConfig = new HubConnectionConfig
|
||||
{
|
||||
HubUrl = ApiController.LoporritServiceHubUri,
|
||||
SkipNegotiation = true,
|
||||
Transports = ["websockets"]
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
defaultConfig = new HubConnectionConfig
|
||||
|
||||
Reference in New Issue
Block a user