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.
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
It starts to run server and listen the port for handling messages and connections.
It explains how clients which connected a server behave on the side of server.
It explains how server behaves to itself and clients.
Some variables and types for comminication.