I want to create a client/server system where I can send objects and commands to the server. I already found out how to send objects (json) and how to use an echo server.
However, the echo example only had one type of message, namely one string, being used. How do I implement a system where I have different kind of messages for different occasions?
Edit: Having read more about handlers and pipelines, I can now ask more precisly what I need: Is it possible to add more than one pipeline to a server or do I have to create a new server with a new port for every use case?