mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 13:28:44 +00:00
Guide: tweak to websocket and testing.
This commit is contained in:
parent
94b41fd484
commit
18b706d4fb
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue