public interface for sending messages and files on returned stream