Fix documentation

Specify correct function name in README
This commit is contained in:
Shivam Mamgain 2016-11-12 16:02:12 +05:30
parent 9fbf129ff2
commit dc13401989
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ unregisters the client and closes the websocket.
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go). The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go).
The `wsHandler` function is registered by the application's `main` function as The `serveWs` function is registered by the application's `main` function as
an HTTP handler. The handler upgrades the HTTP connection to the WebSocket an HTTP handler. The handler upgrades the HTTP connection to the WebSocket
protocol, creates a client, registers the client with the hub and schedules the protocol, creates a client, registers the client with the hub and schedules the
client to be unregistered using a defer statement. client to be unregistered using a defer statement.

View File

@ -37,7 +37,7 @@ var upgrader = websocket.Upgrader{
WriteBufferSize: 1024, WriteBufferSize: 1024,
} }
// Client is an middleman between the websocket connection and the hub. // Client is a middleman between the websocket connection and the hub.
type Client struct { type Client struct {
hub *Hub hub *Hub