mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
bf6011fc06
commit
1bd4eaab88
1 changed files with 10 additions and 7 deletions
|
|
@ -111,13 +111,16 @@ type Service struct {
|
|||
//
|
||||
// From Gorilla websocket docs:
|
||||
//
|
||||
// Connections support one concurrent reader and one concurrent writer.
|
||||
// Applications are responsible for ensuring that no more than one goroutine calls the write methods
|
||||
// - NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression, SetCompressionLevel
|
||||
// concurrently and that no more than one goroutine calls the read methods
|
||||
// - NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler
|
||||
// concurrently.
|
||||
// The Close and WriteControl methods can be called concurrently with all other methods.
|
||||
// Connections support one concurrent reader and one concurrent writer. Applications are
|
||||
// responsible for ensuring that
|
||||
// - no more than one goroutine calls the write methods
|
||||
// NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression,
|
||||
// SetCompressionLevel concurrently; and
|
||||
// - that no more than one goroutine calls the
|
||||
// read methods NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler,
|
||||
// SetPingHandler concurrently.
|
||||
//
|
||||
// The Close and WriteControl methods can be called concurrently with all other methods.
|
||||
type connWrapper struct {
|
||||
conn *websocket.Conn
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue