mirror of https://github.com/fafhrd91/actix-web
chore: Clone the ws codec in actix-web-actors
This commit is contained in:
parent
3cc8490c82
commit
4e534a158b
|
@ -288,7 +288,7 @@ where
|
||||||
inner: ContextParts::new(mb.sender_producer()),
|
inner: ContextParts::new(mb.sender_producer()),
|
||||||
messages: VecDeque::new(),
|
messages: VecDeque::new(),
|
||||||
};
|
};
|
||||||
ctx.add_stream(WsStream::new(stream, codec));
|
ctx.add_stream(WsStream::new(stream, codec.clone()));
|
||||||
|
|
||||||
WebsocketContextFut::new(ctx, actor, mb, codec)
|
WebsocketContextFut::new(ctx, actor, mb, codec)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue