Skip to content

Commit 0c6928e

Browse files
committed
Addressing PR review comments
1 parent e03d4ad commit 0c6928e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Additional documentation and release notes are available at [Multiplayer Documen
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- WebSocket supports. When using UTP 2.0, a property `UseWebSockets` in the `UtpTransport` component of the `NetworkManager` allows picking WebSockets for communication. When building for WebGL, this selection happens automatically.
15+
1216
### Changed
1317

1418
- The debug simulator in `UnityTransport` is now non-deterministic. Its random number generator used to be seeded with a constant value, leading to the same pattern of packet drops, delays, and jitter in every run. (#2196)

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ public void CreateDriver(UnityTransport transport, out NetworkDriver driver,
13851385
else
13861386
{
13871387
#if UNITY_WEBGL
1388-
Debug.LogWarning("WebSockets were used even though they're not selected in NetworkManager. You should adjust the setting, to silence this warning.");
1388+
Debug.LogWarning($"WebSockets were used even though they're not selected in NetworkManager. You should check {nameof(UseWebSockets)}', on the Unity Transport component, to silence this warning.");
13891389
driver = NetworkDriver.Create(new WebSocketNetworkInterface(), m_NetworkSettings);
13901390
#else
13911391
driver = NetworkDriver.Create(new UDPNetworkInterface(), m_NetworkSettings);

0 commit comments

Comments
 (0)