You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
impl<S>WebSocketStream<S>{/// Simple send method to replace `futures_sink::Sink` (till v0.3).pubasyncfnsend(&mutself,msg:Message) -> Result<(),WsError>whereS:AsyncRead + AsyncWrite + Unpin,{// Example to make it work. A simpler internal way can be used to implement it.SinkExt::send(self, msg).await}}
In an ideal world, the send method would be called even if the SinkExt was introduced. I'm not sure if there would be additional problems if a method name is duplicated with a method in trait.
cc smol-rs/futures-lite#111smol-rs/futures-lite#112