{"repo":"endel/NativeWebSocket","free":true,"listed":false,"github":"https://github.com/endel/NativeWebSocket","clone":"git clone https://github.com/endel/NativeWebSocket.git","description":"🔌 WebSocket client for Unity/MonoGame/Godot Mono - with no external dependencies (WebGL, Native, Android, iOS, UWP)","language":"C#","stars":1707,"topics":["websockets","dotnet","godot-mono","monogame","unity"],"license":null,"category":"game-templates","readme_excerpt":"A simple, dependency-free WebSocket client library for Unity , MonoGame , Godot , and any .NET project. - No external DLL's required (uses built-in System.Net.WebSockets ) - WebGL/HTML5 support (Unity) - Supports all major build targets - Automatic main-thread event dispatching via SynchronizationContext - Very simple API Used in Colyseus Unity SDK. Installation Unity Requires Unity 2019.1+ with .NET 4.x+ Runtime Note: Do not copy the raw source files from this repository directly into your Unity project. The core WebSocket.cs requires a build-time transformation to add WebGL conditional compilation guards. Use one of the install methods below instead. Via UPM (Unity Package Manager): 1. Open Unity 2. Open Package Manager Window 3. Click Add Package From Git URL 4. Enter URL: https://github.com/endel/NativeWebSocket.git#upm-2 If you need the previous 1.x package instead, use https://github.com/endel/NativeWebSocket.git#upm in UPM, or check out the repository sources from the 1.x branch. Via .unitypackage: 1. Download NativeWebSocket.unitypackage from the Releases page 2. In Unity, go to Assets Import Package Custom Package and select the downloaded file MonoGame / .NET Godot (C#) Usage Unity WebGL note: Unity pauses the game loop when the browser tab loses focus, which stops all WebSocket send/receive callbacks. To keep the connection active in the background, set Application.runInBackground = true in your script or enable Run In Background in Player Settings Resolution and P","default_branch":null,"files":null,"tree":[],"storefront":"/r/endel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/endel/NativeWebSocket/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}