Unity Issue Tracker - "Use WebSockets" error appears when connecting to a session despite enabling "Use WebSockets" option
Closed
MTTB-1113
"Use WebSockets" error appears when connecting to a session despite enabling "Use WebSockets" option
Package: Multiplayer Services
As Designed
1.1.X
The documentation has been updated with more detailed setup steps and limitations
https://docs-multiplayer.unity3d.com/netcode/current/learn/distributed-authority-quick-start/
How to reproduce:
1. Open the project “IN-92797_WebSocketsTest”
2. Enter Play Mode
3. At the top left corner fill in the fields with any string value
4. Click “Create or Join Session”
5. Observe the Console
Expected result: No error about Use Websockets appears
Actual result: Use Websockets error appears
Reproducible on: 2.4.0 (6000.0.41f1, 6000.1.0b9, 6000.2.0a6)
Could not test with: 2022.3.57f1 (com.unity.netcode.gameobjects package issues related to the script code)
Notes:
The project was made using the following guides: [Distributed authority general quickstart | Unity Multiplayer|https://docs-multiplayer.unity3d.com/netcode/current/learn/distributed-authority-quick-start/#adding-gameplay] [Distributed authority and WebGL quickstart | Unity Multiplayer|https://docs-multiplayer.unity3d.com/netcode/current/learn/distributed-authority-webgl/]
The guide from the Documentation requires com.unity.transport package 2.3.0 or higher
Switching Build Profile to Windows fixed the issue. File → Build Profiles → Windows → Switch Platform
Prioritise and Follow this issue
Have a workaround or additional info about this issue?