mirror of
https://github.com/golang/net.git
synced 2026-03-31 10:27:08 +09:00
websocket: Be explicit about goroutine safety
Specifically state that it is safe to call methods on Conn from multiple goroutines in the docs. Fixes #6692 Change-Id: I1b0e8812ca5b2e3ca72948c5404d569879e54f34 Reviewed-on: https://go-review.googlesource.com/20455 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
committed by
Andrew Gerrand
parent
237fc45c42
commit
3e5cd1ed14
@@ -144,6 +144,8 @@ type frameHandler interface {
|
||||
}
|
||||
|
||||
// Conn represents a WebSocket connection.
|
||||
//
|
||||
// Multiple goroutines may invoke methods on a Conn simultaneously.
|
||||
type Conn struct {
|
||||
config *Config
|
||||
request *http.Request
|
||||
|
||||
Reference in New Issue
Block a user