[][src]Trait actix_web::ws::WsWriter

pub trait WsWriter {
    fn send_text<T: Into<Binary>>(&mut self, text: T);
fn send_binary<B: Into<Binary>>(&mut self, data: B);
fn send_ping(&mut self, message: &str);
fn send_pong(&mut self, message: &str);
fn send_close(&mut self, reason: Option<CloseReason>); }

Common writing methods for a websocket.

Required Methods

Send a text

Send a binary

Send a ping message

Send a pong message

Close the connection

Implementors

impl WsWriter for ClientWriter
[src]

Send text frame

Send binary frame

Send ping frame

Send pong frame

Send close frame

impl<A, S> WsWriter for WebsocketContext<A, S> where
    A: Actor<Context = Self>,
    S: 'static, 
[src]

Send text frame

Send binary frame

Send ping frame

Send pong frame

Send close frame