1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-08-02 02:35:04 +00:00

Guide: tweak to websocket and testing.

This commit is contained in:
memoryruins 2018-04-06 19:44:52 -04:00
parent 94b41fd484
commit 18b706d4fb
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;