Create a Publisher object to write data to a stream. You need one Publisher object per stream.
There is no explicit call to close the connection. The connection will be closed when you destroy the C8::Publisher object.