mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
Guide: tweak to websocket and testing.
This commit is contained in:
parent
94b41fd484
commit
18b706d4fb
@ -133,7 +133,7 @@ the websocket server and returns ws reader and writer objects. *TestServer* also
|
||||
provides an `execute()` method, which runs future objects to completion and returns
|
||||
result of the future computation.
|
||||
|
||||
The following example shows how to test a server websocket handler:
|
||||
The following example demonstrates how to test a websocket handler:
|
||||
|
||||
```rust
|
||||
# extern crate actix;
|
||||
|
@ -6,7 +6,7 @@ a [*ws::WsStream*](../actix_web/ws/struct.WsStream.html) and then use stream
|
||||
combinators to handle actual messages, but it is simpler to handle websocket communications
|
||||
with an http actor.
|
||||
|
||||
The following is example of a simple websocket echo server:
|
||||
The following is an example of a simple websocket echo server:
|
||||
|
||||
```rust
|
||||
# extern crate actix;
|
||||
|
Loading…
Reference in New Issue
Block a user