Skip to content

Commit 02eec99

Browse files
committed
Improve documentation.
1 parent 87f6f6a commit 02eec99

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

doc.go

+8-5
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,13 @@
9797
//
9898
// Concurrency
9999
//
100-
// A Conn supports a single concurrent caller to the write methods (NextWriter,
101-
// SetWriteDeadline, WriteMessage) and a single concurrent caller to the read
102-
// methods (NextReader, SetReadDeadline, ReadMessage). The Close and
103-
// WriteControl methods can be called concurrently with all other methods.
100+
// Connections do not support concurrent calls to the write methods
101+
// (NextWriter, SetWriteDeadline, WriteMessage) or concurrent calls to the read
102+
// methods methods (NextReader, SetReadDeadline, ReadMessage). Connections do
103+
// support a concurrent reader and writer.
104+
//
105+
// The Close and WriteControl methods can be called concurrently with all other
106+
// methods.
104107
//
105108
// Read is Required
106109
//
@@ -139,7 +142,7 @@
139142
// CheckOrigin: func(r *http.Request) bool { return true },
140143
// }
141144
//
142-
// The deprecated Upgrade function does enforce an origin policy. It's the
145+
// The deprecated Upgrade function does not enforce an origin policy. It's the
143146
// application's responsibility to check the Origin header before calling
144147
// Upgrade.
145148
package websocket

0 commit comments

Comments
 (0)