I did some tests with the celluloid-io examples and I am wondering whether it is possible to run a Socket-Server and Socket Client at the same time with celluloid.
Usually we would use 2 separate processes but in my case I want to receive requests on port 8000 from a couple of clients and want to answer them asynchroneously from the same port 8000 (requiremenet from the counterpart application). This requires that both, the receiving part and the sending parts shall work on port 8000.
The echo application and the receiving part is trivial for me, but I would need a basic example where I may receive data from another source through ZMQ or IRB, then identify which client I have to connect to (I think somehow via registry) and then send the data.
Any help is welcome.