pub fn set_data(resource_id: u32, data: Vec<u8>) -> Result<()>
Sets the data for the sink of the stream.
use ws-sdk::stream set_data(rid, data)?;