How to Add Data to StreamData Frame?

Hi everyone,

I hope you are well. Does anyone know how to add data into the StreamData Frame?
https://interledger.org/rfcs/0029-stream/#5311-streamdata-frame
I’m new to Rust. I have looked into the source but couldn’t find any interface on how to insert data into the frame.

Regards,
Al

@matdehaast looked at the code again. When Evan first wrote the code he was focussing on just solving sending payments not data exchange as that wasn’t really being used with the js implementation. So the actual code supports it being added as the stream packet is fully-featured but there is no method or way to use the stream sender to add data frames currently. You would need to add a new method on interledger-rs/client.rs at ac50084fb8b5e70e83d9ac966559842d4fe81000 · interledger-rs/interledger-rs · GitHub to be able to send data packets. We’d love a Pull Request with that, if that’s something you’d like to do!