{"id":13730846,"url":"https://github.com/JohannesDeml/Unity-Net-Core-Networking-Sockets","last_synced_at":"2025-05-08T03:32:02.869Z","repository":{"id":76786814,"uuid":"263682832","full_name":"JohannesDeml/Unity-Net-Core-Networking-Sockets","owner":"JohannesDeml","description":"NetCoreServer Client implementation for Unity","archived":false,"fork":false,"pushed_at":"2021-04-08T07:59:15.000Z","size":1242,"stargazers_count":86,"open_issues_count":2,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-09T22:42:20.402Z","etag":null,"topics":["client-side","multiplayer","network","realtime","sockets","tcp","udp","unity","unity3d"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohannesDeml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-13T16:20:42.000Z","updated_at":"2024-09-29T14:27:48.000Z","dependencies_parsed_at":"2024-01-06T15:15:03.658Z","dependency_job_id":"647cb819-b6b1-4e78-b94e-de775e66e53e","html_url":"https://github.com/JohannesDeml/Unity-Net-Core-Networking-Sockets","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohannesDeml%2FUnity-Net-Core-Networking-Sockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohannesDeml%2FUnity-Net-Core-Networking-Sockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohannesDeml%2FUnity-Net-Core-Networking-Sockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohannesDeml%2FUnity-Net-Core-Networking-Sockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohannesDeml","download_url":"https://codeload.github.com/JohannesDeml/Unity-Net-Core-Networking-Sockets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224695734,"owners_count":17354471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-side","multiplayer","network","realtime","sockets","tcp","udp","unity","unity3d"],"created_at":"2024-08-03T02:01:20.284Z","updated_at":"2024-11-14T21:31:40.987Z","avatar_url":"https://github.com/JohannesDeml.png","language":"C#","funding_links":[],"categories":["C#"],"sub_categories":[],"readme":"# Unity .Net Core Networking Client\n\n![Unity Editor Screenshot](./Docs/preview.png)\n\n*Lightweight Unity client for [NetCoreServer](https://github.com/chronoxor/NetCoreServer)*  \n[![openupm](https://img.shields.io/npm/v/com.deml.netcore-networking?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.deml.netcore-networking/) [![](https://img.shields.io/github/release-date/JohannesDeml/Unity-Net-Core-Networking-Sockets.svg)](https://github.com/supyrb/JohannesDeml/Unity-Net-Core-Networking-Sockets) [![Unity 2018.1 or later](https://img.shields.io/badge/unity-2018.1%20or%20later-green.svg?logo=unity\u0026cacheSeconds=2592000)](https://unity3d.com/get-unity/download/archive)\n\nThis is an example for a unity client that works with a [NetCoreServer](https://github.com/chronoxor/NetCoreServer) server application. The latest version is built with Unity 2020.3.1f1 and NetCoreServer 5.0.15.\n\n## Features\n\n* Supports SSL, TCP \u0026 UDP\n* Client code from NetCoreServer with wrappers for unity usage\n* Precompiled server executables for windows for easy testing\n* Small GC overhead - Usage of MemoryStream\n* Async send and receive - Does not block the Main Thread\n* Low level - just plain UPD/TCP/SSL\n* Tested with local, network and remote server\n\n| Platform | SSL  | TCP  | UDP  |\n| -------- | :--: | :--: | :--: |\n| Editor   |  ✔️   |  ✔️   |  ✔️   |\n| Android  |  ✔️   |  ✔️   |  ✔️   |\n| iOS      |  ✔️   |  ✔️   |  ✔️   |\n| Windows  |  ✔️   |  ✔️   |  ✔️   |\n\n\n\n## Installation\n\nYou can either install the package through the package manager with [OpenUPM](https://openupm.com/) (Recommended) or download the scripts as a unity package\n\n### OpenUPM\n\n```sh\n# Install openupm-cli\n$ npm install -g openupm-cli\n\n# Enter your unity project folder\n$ cd YOUR_UNITY_PROJECT_FOLDER\n\n# Add package to your project\n$ openupm openupm add com.deml.netcore-networking\n```\n\n### Download\n\n[Latest Unity Package](../../releases/latest)\n\n\n\n## Setup\n\n* Unity 2020.3.1f1 (Works with older versions as well)\n* Precompiled servers an in [ServerWindows](./ServerWindows), run the bat you want to test\n* Open `Samples/EchoClient/Scenes/NetworkExampleClient.unity` and hit play. \n* Default port is `3333` when running the bat files.\n\n\n\n## Troubleshooting\n\n* I can't find the samples\n  * The samples are stored in `Assets/NetCoreNetworking/Samples~`. A symlink at `Assets/Samples` points to the folder. That symlink might break when pulling for the first time on Windows. There are two solutions for it:\n    * Just run **`Assets/.RelinkSamples.bat`** to regenerate the symlink.\n    * [Configure your git to support symlinks](https://stackoverflow.com/a/59761201/3319358)\n* The precompiled server scripts don't work\n  * Install Dotnet from https://dotnet.microsoft.com/download\n\n\n\n## TODO\n\n* Split messages back into the sent chunks\n* Fix bug: Repeated asnyc sending results in some packages not being sent for UDP\n* Support Websockets\n\n\n\n## Libraries\n\n* [NetCoreServer](https://github.com/chronoxor/NetCoreServer) by [Chronoxor](https://github.com/chronoxor/)\n\n\n\n## License\n\n* MIT - see [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohannesDeml%2FUnity-Net-Core-Networking-Sockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJohannesDeml%2FUnity-Net-Core-Networking-Sockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohannesDeml%2FUnity-Net-Core-Networking-Sockets/lists"}