Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Corrections on WebSockets docs (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdiegoant authored and RomainLanz committed Jun 30, 2019
1 parent 5026de9 commit d58d97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 09-WebSockets/02-Philosophy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Multiplexing requires a standard to define data packet structure.

As a consumer of the WebSocket server package you don't have to worry about packet types, but when writing a client for the server, it's critically important to understand them.

Your WebSocket data encoder decodes network data as an *object* (or equalvent data type for your programming language) containing a structure similar to:
Your WebSocket data encoder decodes network data as an *object* (or equivalent data type for your programming language) containing a structure similar to:

[source, js]
----
Expand Down
2 changes: 1 addition & 1 deletion 09-WebSockets/03-Server-API.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Ws
----

== Creating Middleware
WebSocket middleware required a `wsHandle` method.
WebSocket middleware require a `wsHandle` method.

You can share HTTP and WebSocket middleware by ensuring both `handle` (for HTTP requests) and `wsHandle` methods are defined on your middleware class:

Expand Down

0 comments on commit d58d97d

Please sign in to comment.