Skip to content

ws can not receive text #160

Open
Open
@reison1218

Description

hi,thanks for your work!
i love this crate,it help me lot!
i find the ws server side can not receive text?i have check the source code.
because the trait Remote's function "fn receive(&self,process_data: impl FnMut(&[u8])) -> ReadStatus". u can check it on adapter.rs
i change the ws.rs, add some code for receive funciton.like this:
Message::Text(text) => {
drop(state);
process_data(text.as_bytes())
}
but this is bad way.
i know if change the trait Remote will make many change
do u have any good idea for ws support text?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions