mirror of https://github.com/gorilla/websocket.git
Fix tabs in overview examples.
This commit is contained in:
parent
9cdec41bda
commit
5625e8a51f
16
doc.go
16
doc.go
|
@ -11,14 +11,14 @@
|
|||
// Conn:
|
||||
//
|
||||
// func handler(w http.ResponseWriter, r *http.Request) {
|
||||
// ws, err := websocket.Upgrade(w, r, nil, 1024, 1024)
|
||||
// if _, ok := err.(websocket.HandshakeError); ok {
|
||||
// http.Error(w, "Not a websocket handshake", 400)
|
||||
// return
|
||||
// } else if err != nil {
|
||||
// log.Println(err)
|
||||
// return
|
||||
// }
|
||||
// ws, err := websocket.Upgrade(w, r, nil, 1024, 1024)
|
||||
// if _, ok := err.(websocket.HandshakeError); ok {
|
||||
// http.Error(w, "Not a websocket handshake", 400)
|
||||
// return
|
||||
// } else if err != nil {
|
||||
// log.Println(err)
|
||||
// return
|
||||
// }
|
||||
// ... Use conn to send and receive messages.
|
||||
// }
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue