mirror of https://github.com/gorilla/websocket.git
Improve documentation.
This commit is contained in:
parent
87f6f6a22e
commit
02eec998da
13
doc.go
13
doc.go
|
@ -97,10 +97,13 @@
|
||||||
//
|
//
|
||||||
// Concurrency
|
// Concurrency
|
||||||
//
|
//
|
||||||
// A Conn supports a single concurrent caller to the write methods (NextWriter,
|
// Connections do not support concurrent calls to the write methods
|
||||||
// SetWriteDeadline, WriteMessage) and a single concurrent caller to the read
|
// (NextWriter, SetWriteDeadline, WriteMessage) or concurrent calls to the read
|
||||||
// methods (NextReader, SetReadDeadline, ReadMessage). The Close and
|
// methods methods (NextReader, SetReadDeadline, ReadMessage). Connections do
|
||||||
// WriteControl methods can be called concurrently with all other methods.
|
// support a concurrent reader and writer.
|
||||||
|
//
|
||||||
|
// The Close and WriteControl methods can be called concurrently with all other
|
||||||
|
// methods.
|
||||||
//
|
//
|
||||||
// Read is Required
|
// Read is Required
|
||||||
//
|
//
|
||||||
|
@ -139,7 +142,7 @@
|
||||||
// CheckOrigin: func(r *http.Request) bool { return true },
|
// CheckOrigin: func(r *http.Request) bool { return true },
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// The deprecated Upgrade function does enforce an origin policy. It's the
|
// The deprecated Upgrade function does not enforce an origin policy. It's the
|
||||||
// application's responsibility to check the Origin header before calling
|
// application's responsibility to check the Origin header before calling
|
||||||
// Upgrade.
|
// Upgrade.
|
||||||
package websocket
|
package websocket
|
||||||
|
|
Loading…
Reference in New Issue