Skip to content

dinghuafirst/TcpServerKit_Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

TcpServerKit_Unity

TcpServerKit Unity client implement

get server package https://github.com/mul83rry/TcpServerKit

import TcpServerKit_UnityCLient.unitypackage

Import `TcpServerKit_UnityClient.unitypackage`

Drag MuClient.prefab from TcpClientKit folder to hierarchy and set ip and port

Add required namespace

using TcpClientKit;
using static TcpClientKit.Client;

Set connection event.

Client.ConnectResult += (ConnectingStatus cs) =>
{
};

Add listeners (if exists will be replaced)

Client.On("Login", LoginResult);

Start client

Client.InitServer();

For reconnecting

Client.CloseConnection();
Client.InitServer();

server package https://www.nuget.org/packages/TcpServerKit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published