Function actix_web_actors::ws::start
source ยท pub fn start<A, T>(
actor: A,
req: &HttpRequest,
stream: T
) -> Result<HttpResponse, Error>where
A: Actor<Context = WebsocketContext<A>> + StreamHandler<Result<Message, ProtocolError>>,
T: Stream<Item = Result<Bytes, PayloadError>> + 'static,
Expand description
Perform WebSocket handshake and start actor.
To customize options, see WsResponseBuilder
.