mirror of https://github.com/gorilla/websocket.git
Update README.md in chat example
This commit is contained in:
parent
dad49c62a4
commit
0a03b43b0d
|
@ -44,7 +44,7 @@ Clients send requests to the hub using the `register`, `unregister` and
|
||||||
`broadcast` channels.
|
`broadcast` channels.
|
||||||
|
|
||||||
The hub registers clients by adding the client pointer as a key in the
|
The hub registers clients by adding the client pointer as a key in the
|
||||||
`clients` map. The map value is always true.
|
`clients` map. The map value is empty struct.
|
||||||
|
|
||||||
The unregister code is a little more complicated. In addition to deleting the
|
The unregister code is a little more complicated. In addition to deleting the
|
||||||
client pointer from the `clients` map, the hub closes the clients's `send`
|
client pointer from the `clients` map, the hub closes the clients's `send`
|
||||||
|
|
Loading…
Reference in New Issue