Latest work

It is still pretty ugly, but at least with an integration test it seems to be doing its part.
Isn't it better if we subscribe the socket only to the channels we're interested in, instead of receiving everything and then discarding what it's not meant to be received by us?