websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

Debug impl for MessageCodec #145

Closed dbrgn closed 7 years ago

dbrgn commented 7 years ago

Would it be possible to implement the Debug trait for the MessageCodec type?

It would make debugging much easier :) Right now the "message" returned by an async stream can't be logged/printed directly.

dbrgn commented 7 years ago

I think this issue is a result of my misunderstanding of stream combinators. I was mistaking the MessageCodec for the OwnedMessage :)

illegalprime commented 6 years ago

Glad you figured it out!