In this tutorial we’re going to create a simple TCP chat server based on Amp that allows many users to connect and exchange messages concurrently. … It creates a simple server socket and accepts connections. Once a connection is accepted, it listens for new input lines and echo’s them back to the client.