Skip to content

Commit 80aa3a1

Browse files
authored
add ssl enable variable (#51)
1 parent 911675b commit 80aa3a1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

unity/EzyDefaultController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ protected void OnEnable()
3939
var config = EzyClientConfig.builder()
4040
.clientName(socketConfigVariable.Value.ZoneName)
4141
.zoneName(socketConfigVariable.Value.ZoneName)
42+
.enableSSL(socketConfigVariable.Value.EnableSSL)
4243
.build();
4344
EzyClientFactory
4445
.getInstance()

unity/variable/EzySocketConfigVariable.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ public class EzySocketConfigModel
2929
[SerializeField]
3030
private bool udpUsage;
3131

32+
[SerializeField]
33+
private bool enableSSL;
34+
3235
public string ZoneName => zoneName;
3336
public string AppName => appName;
3437
public string WebSocketUrl => webSocketUrl;
3538
public string TcpUrl => tcpUrl;
3639
public int UdpPort => udpPort;
3740
public bool UdpUsage => udpUsage;
41+
public bool EnableSSL => enableSSL;
3842
}
3943
}
4044
}

0 commit comments

Comments
 (0)