mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
update ws docs
This commit is contained in:
@ -67,7 +67,7 @@ impl Route for MyWS {
|
||||
ctx: &mut HttpContext<Self>) -> HttpMessage<Self>
|
||||
{
|
||||
if let Some(payload) = payload {
|
||||
match ws::do_handshake(req) {
|
||||
match ws::handshake(req) {
|
||||
Ok(resp) => {
|
||||
ctx.start(resp);
|
||||
ctx.add_stream(ws::WsStream::new(payload));
|
||||
|
Reference in New Issue
Block a user