File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 97
97
//
98
98
// Concurrency
99
99
//
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.
104
107
//
105
108
// Read is Required
106
109
//
139
142
// CheckOrigin: func(r *http.Request) bool { return true },
140
143
// }
141
144
//
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
143
146
// application's responsibility to check the Origin header before calling
144
147
// Upgrade.
145
148
package websocket
You can’t perform that action at this time.
0 commit comments