A connection handler handles the connection, starting almost immediately from the point the TCP connection to the server was made.
Unlike HTTP handlers, connection handlers receive a connection object as an argument.
Connection handlers can be used to implement protocols. Here is an example of a simple echo server:
Contents of echo.py file:
What is this????|