Skip to content

JamesVeug/UnityTCPSocketExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityTCPSocketExample

Example Unity chat project using Client-Server TCP Sockets to send chat messages between multiple clients.

alt text

What does this do?

  • Clients can connect to the server
  • The server listens for new clients
  • Connected clients on the server are given a basic name
  • Clients send messages to the server
  • Server dispatches messages to all connected clients
  • Clients display messages received from the server
  • Clients can use commands
    • !disconnect (disconnectes user from the server)
    • !ping (displays how long requests are taking)

What do the different text colors mean?

  • Red is for logs on the server (User has Connect/Disconnected... etc)
  • Grey is for logs on the client
  • Green is for messages from the server to the client

How to setup for users not on your local network

About

Example project using Client-Server TCP Sockets to send chat messages between multiple clients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages