{"id":13678245,"url":"https://github.com/NetEase/UnitySocketIO","last_synced_at":"2025-04-29T12:34:16.041Z","repository":{"id":6264700,"uuid":"7497813","full_name":"NetEase/UnitySocketIO","owner":"NetEase","description":"socket.io client for unity3d.","archived":false,"fork":false,"pushed_at":"2014-05-04T02:22:18.000Z","size":393,"stargazers_count":885,"open_issues_count":23,"forks_count":228,"subscribers_count":117,"default_branch":"master","last_synced_at":"2024-04-13T23:44:23.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NetEase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-08T08:01:27.000Z","updated_at":"2024-03-15T10:37:27.000Z","dependencies_parsed_at":"2022-08-26T15:22:46.349Z","dependency_job_id":null,"html_url":"https://github.com/NetEase/UnitySocketIO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2FUnitySocketIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2FUnitySocketIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2FUnitySocketIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2FUnitySocketIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetEase","download_url":"https://codeload.github.com/NetEase/UnitySocketIO/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224173673,"owners_count":17268151,"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":[],"created_at":"2024-08-02T13:00:51.471Z","updated_at":"2024-11-11T20:31:13.521Z","avatar_url":"https://github.com/NetEase.png","language":"C#","readme":"UnitySocketIO\n=============================\nThe  project is the socket.io client for unity3d, written in C#.\nIt's based on socketio4net.Client (http://socketio4net.codeplex.com/). However, \nsocketio4net.Client only provides a .NET 4.0 C# client, and does compatible with unity3d. \nWe've done a lot of works on supporting unity3d.\n\nThe project was initially designed for unity client of [pomelo](https://github.com/NetEase/pomelo) \nframework, which is a powerful, scalable game server framework.\n\n## How to use\n\nIt is very simple to use UnitySocketIO. Copy all the DLLS locating in the file of /bin/Debug/  to your project.\n\nOf course, you can download this project and compile it:\n\n\u003egit clone  https://github.com/NetEase/UnitySocketIO.git\n\n## API\n\nCreate and initialize a new UnitySocketIO client.\n\n```c#\nClient client = new Client(url);\n\nclient.Opened += SocketOpened;\nclient.Message += SocketMessage;\nclient.SocketConnectionClosed += SocketConnectionClosed;\nclient.Error +=SocketError;\n\nclient.Connect();\n\nprivate void SocketOpened(object sender, MessageEventArgs e) {\n    //invoke when socket opened\n}\n\n```\nSend message to server.\n\n```c#\n\nclient.Send(messge);\n\n```\nGet message from server.\n\n```c#\nprivate void SocketMessage (object sender, MessageEventArgs e) {\n    if ( e!= null \u0026\u0026 e.Message.Event == \"message\") {\n        string msg = e.Message.MessageText;\n       process(msg);\n    }\n}\n\n```\nClose connection.\n\n```c#\n\nclient.Close();\n\n```\n\n\n##License\n(The MIT License)\n\nCopyright (c) 2012-2013 NetEase, Inc. and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a \ncopy of this software and associated documentation files (the 'Software'), \nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense, \nand/or sell copies of the Software, and to permit persons to whom the \nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in \nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":["NetWork","Open Source Repositories","Open Source Packages"],"sub_categories":["Networking"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetEase%2FUnitySocketIO","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNetEase%2FUnitySocketIO","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetEase%2FUnitySocketIO/lists"}