File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ unregisters the client and closes the websocket.
5959
6060The code for the ` Client ` type is in [ client.go] ( https://github.com/gorilla/websocket/blob/master/examples/chat/client.go ) .
6161
62- The ` wsHandler ` function is registered by the application's ` main ` function as
62+ The ` serveWs ` function is registered by the application's ` main ` function as
6363an HTTP handler. The handler upgrades the HTTP connection to the WebSocket
6464protocol, creates a client, registers the client with the hub and schedules the
6565client to be unregistered using a defer statement.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ var upgrader = websocket.Upgrader{
3737WriteBufferSize : 1024 ,
3838}
3939
40- // Client is an middleman between the websocket connection and the hub.
40+ // Client is a middleman between the websocket connection and the hub.
4141type Client struct {
4242hub * Hub
4343
You can’t perform that action at this time.
0 commit comments