Partial implementation, I need to right the protocol of communication between the broker and the server