File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ To use the chat example, open http://localhost:8080/ in your browser.
2222## Server
2323
2424The server application defines two types, ` Client ` and ` Hub ` . The server
25- creates an instance of the ` Client ` type for each webscocket connection. A
25+ creates an instance of the ` Client ` type for each websocket connection. A
2626` Client ` acts as an intermediary between the websocket connection and a single
2727instance of the ` Hub ` type. The ` Hub ` maintains a set of registered clients and
2828broadcasts messages to the clients.
@@ -32,7 +32,7 @@ The application runs one goroutine for the `Hub` and two goroutines for each
3232has channels for registering clients, unregistering clients and broadcasting
3333messages. A ` Client ` has a buffered channel of outbound messages. One of the
3434client's goroutines reads messages from this channel and writes the messages to
35- the webscoket . The other client goroutine reads messages from the websocket and
35+ the websocket . The other client goroutine reads messages from the websocket and
3636sends them to the hub.
3737
3838### Hub
You can’t perform that action at this time.
0 commit comments