Change the callback into a trait #63
Labels
team:WebTech
End to End UX / UI and blockchain
type:tech-debt
the issue is a tech debt that needs fixing
Milestone
Describe what you want implemented
The
on_message
parameter should be atrait
instead offn(Vec<u8>)
Describe "Why" this is needed
Binding the callback to a simple function is useless in most scenarios. A
trait
is simply more manageable due to theself
context availabilityDescribe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.Additional context
Add any other context or screenshots about the feature request here.The text was updated successfully, but these errors were encountered: