Skip to content

Commit

Permalink
fix: fixing TcpConfig now showing in inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen authored Sep 15, 2024
1 parent a731085 commit 5d19d2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/SimpleWebSocket/Runtime/WebSocketFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d19d2c

Please sign in to comment.