mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Revert "SWT: port changed to Port, WebGL Platform handling"
This reverts commit 75951df2e5
.
This commit is contained in:
parent
75951df2e5
commit
e72f85e640
@ -46,7 +46,7 @@ void DrawPortSettings(Rect position, SerializedProperty property)
|
|||||||
if (portOption == WebsocketPortOption.MatchWebpageProtocol)
|
if (portOption == WebsocketPortOption.MatchWebpageProtocol)
|
||||||
port = swt.clientUseWss ? 443 : 80;
|
port = swt.clientUseWss ? 443 : 80;
|
||||||
else
|
else
|
||||||
port = swt.Port;
|
port = swt.port;
|
||||||
|
|
||||||
GUI.enabled = false;
|
GUI.enabled = false;
|
||||||
EditorGUI.IntField(position, new GUIContent("Client Port"), port);
|
EditorGUI.IntField(position, new GUIContent("Client Port"), port);
|
||||||
|
@ -50,28 +50,9 @@ public class SimpleWebTransport : Transport, PortTransport
|
|||||||
|
|
||||||
[Header("Server settings")]
|
[Header("Server settings")]
|
||||||
|
|
||||||
ushort port = 7778;
|
|
||||||
|
|
||||||
[Tooltip("Port to use for server")]
|
[Tooltip("Port to use for server")]
|
||||||
public ushort Port
|
public ushort port = 7778;
|
||||||
{
|
public ushort Port { get => port; set => port = value; }
|
||||||
get
|
|
||||||
{
|
|
||||||
#if UNITY_WEBGL
|
|
||||||
return clientWebsocketSettings.CustomClientPort;
|
|
||||||
#else
|
|
||||||
return port;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
#if UNITY_WEBGL
|
|
||||||
clientWebsocketSettings.CustomClientPort = value;
|
|
||||||
#else
|
|
||||||
port = value;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[Tooltip("Groups messages in queue before calling Stream.Send")]
|
[Tooltip("Groups messages in queue before calling Stream.Send")]
|
||||||
public bool batchSend = true;
|
public bool batchSend = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user