From 5d19d2ccba4409318aa65381857df029f275eb37 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Sun, 15 Sep 2024 14:16:37 +0100 Subject: [PATCH] fix: fixing TcpConfig now showing in inspector --- Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs b/Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs index c325fdf..50e5447 100644 --- a/Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs +++ b/Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs @@ -24,7 +24,11 @@ public sealed class WebSocketFactory : SocketFactory, IHasAddress, IHasPort [Tooltip("Address client will use to connect. If using a reverse proxy, this should be the path and port for that. note, Scheme will be changed based on if SSL is being used")] public string ClientUri = "ws://localhost/path"; - public TcpConfig tcpConfig; + [Header("Tcp Config")] + public bool noDelay; + public int sendTimeout; + public int receiveTimeout; + private TcpConfig tcpConfig => new TcpConfig(noDelay, sendTimeout, receiveTimeout); [Tooltip("Note this sets Buffer size for socket layer, so larger numbers will require more memory.")] public int _maxPacketSize = 16384;