You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket
*[Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo)
*[Write buffer pool example](https://github.com/gorilla/websocket/tree/master/examples/bufferpool)
*[Client and server example](https://github.com/gorilla/websocket/tree/main/examples/echo)
*[Write buffer pool example](https://github.com/gorilla/websocket/tree/main/examples/bufferpool)
21
21
22
22
### Status
23
23
@@ -33,4 +33,4 @@ package API is stable.
33
33
34
34
The Gorilla WebSocket package passes the server tests in the [Autobahn Test
35
35
Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn
The application's `main` function starts the hub's `run` method as a goroutine.
43
43
Clients send requests to the hub using the `register`, `unregister` and
44
44
`broadcast` channels.
@@ -57,7 +57,7 @@ unregisters the client and closes the websocket.
57
57
58
58
### Client
59
59
60
-
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go).
60
+
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/main/examples/chat/client.go).
61
61
62
62
The `serveWs` function is registered by the application's `main` function as
63
63
an HTTP handler. The handler upgrades the HTTP connection to the WebSocket
@@ -85,7 +85,7 @@ network.
85
85
86
86
## Frontend
87
87
88
-
The frontend code is in [home.html](https://github.com/gorilla/websocket/blob/master/examples/chat/home.html).
88
+
The frontend code is in [home.html](https://github.com/gorilla/websocket/blob/main/examples/chat/home.html).
89
89
90
90
On document load, the script checks for websocket functionality in the browser.
91
91
If websocket functionality is available, then the script opens a connection to
0 commit comments