channel: Add support for writing to a specific stream.