File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 23
23
// This server application works with a client application running in the
24
24
// browser. The client application does not explicitly close the websocket. The
25
25
// only expected close message from the client has the code
26
- // websocket.CloseGoingAway. All other other close messages are likely the
26
+ // websocket.CloseGoingAway. All other close messages are likely the
27
27
// result of an application or protocol error and are logged to aid debugging.
28
28
func ExampleIsUnexpectedCloseError () {
29
-
30
29
for {
31
30
messageType , p , err := c .ReadMessage ()
32
31
if err != nil {
@@ -35,11 +34,11 @@ func ExampleIsUnexpectedCloseError() {
35
34
}
36
35
return
37
36
}
38
- processMesage (messageType , p )
37
+ processMessage (messageType , p )
39
38
}
40
39
}
41
40
42
- func processMesage (mt int , p []byte ) {}
41
+ func processMessage (mt int , p []byte ) {}
43
42
44
43
// TestX prevents godoc from showing this entire file in the example. Remove
45
44
// this function when a second example is added.
You can’t perform that action at this time.
0 commit comments