mirror of https://github.com/fafhrd91/actix-web
ws/context: Add docs to `write()` method
This commit is contained in:
parent
f612b17929
commit
984b8caf5a
|
@ -132,6 +132,11 @@ where
|
|||
A: Actor<Context = Self>,
|
||||
{
|
||||
/// Write payload
|
||||
///
|
||||
/// This is a low-level function that accepts framed messages that should
|
||||
/// be created using `Frame::message()`. If you want to send text or binary
|
||||
/// data you should prefer the `text()` or `binary()` convenience functions
|
||||
/// that handle the framing for you.
|
||||
#[inline]
|
||||
pub fn write(&mut self, data: Binary) {
|
||||
if !self.disconnected {
|
||||
|
|
Loading…
Reference in New Issue