Skip to content

Commit

Permalink
Update testclient.md (#1000)
Browse files Browse the repository at this point in the history
Fix bad exception name

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
  • Loading branch information
hellocoldworld and florimondmanca committed Jul 15, 2020
1 parent 436771a commit 14139c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/testclient.md
Expand Up @@ -70,7 +70,7 @@ always raised by the test client.

* `.websocket_connect(url, subprotocols=None, **options)` - Takes the same set of arguments as `requests.get()`.

May raise `starlette.websockets.Disconnect` if the application does not accept the websocket connection.
May raise `starlette.websockets.WebSocketDisconnect` if the application does not accept the websocket connection.

#### Sending data

Expand All @@ -84,7 +84,7 @@ May raise `starlette.websockets.Disconnect` if the application does not accept t
* `.receive_bytes()` - Wait for incoming bytestring sent by the application and return it.
* `.receive_json(mode="text")` - Wait for incoming json data sent by the application and return it. Use `mode="binary"` to send JSON over binary data frames.

May raise `starlette.websockets.Disconnect`.
May raise `starlette.websockets.WebSocketDisconnect`.

#### Closing the connection

Expand Down

0 comments on commit 14139c2

Please sign in to comment.