Closed
Description
In write.go file function Write does not return the number of actually sent bytes.
So currently I cannot do the second assertion in code below:
n, err := conn.Write(ctx, websocket.MessageBinary, data)
if err != nil {
...
}
if len(data) != n {
// send remaining bytes in the next Write call or throw an error
}
Metadata
Metadata
Assignees
Labels
No labels