···20202121When sending a message representing an action (subscribe, publish etc) then a uint16 binary message is sent.
22222323-When sending any other data, the length of the data is to be sent first using a binary uint32 and then the actual data sent afterwards. 2323+When sending any other data, the length of the data is to be sent first using a binary uint32 and then the actual data sent afterwards.
2424+2525+## Running the server
2626+2727+There is a server that can be run using `docker-compose up message-server`. This will start a server running listening on port 3000.
2828+2929+## Example clients
3030+There is an example application that implements the subscriber and publishers in the `example` directory.
3131+3232+Run `go build .` to build the file.
3333+3434+When running the example there are the following flags:
3535+3636+`publish` : settings this to true will allow messages to be sent every 500ms as well as consuming
3737+`consume-from` : this allows you to specify what message to start from. If you don't set this or set it to be -1, you will start consuming from the next sent message.