Skip to content

hayrullahcansu/Golang-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to Golang Examples

I publish my small and functional projects. I hope it will help.

Note:

  • All examples developed on localhost.
  • İf you want to work on real world, you have to implement the server-side codes to server which have static IP address.

--Chat and Comminication (clients beetwen server)

First, this example explains the relationship between a server and clients which are using Websocket. Simply, Websocket provides full-duplex communication. For more information about websocket

###Server-side source code files

main.go

It starts to run server and listen the port for handling messages and connections.

packages/Client.go

It explains how clients which connected a server behave on the side of server.

packages/Server.go

It explains how server behaves to itself and clients.

packages/Types.go

Some variables and types for comminication.