x/net/websocket: unclear whether Conn.Read documentation refers to frame or message #71107
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
any
Output of
go env
in your module/workspace:What did you do?
The behavior of
websocket.Conn
is not clear.What did you see happen?
In https://pkg.go.dev/golang.org/x/net/websocket#Conn.Read, we have:
Does
Read
read a frame or a message? The text keeps saying "frame", but it actually sounds like a message, or else we don't have a way to get messages. The variable says "msg".There's more confusion in the documentation. In one of the examples we have:
Is it a frame or a message?
What did you expect to see?
In Websockets frames and messages are two different things with well defined meaning in the RFC. This needs to be clarified.
The text was updated successfully, but these errors were encountered: