Fix len of write operation

This commit is contained in:
Zoltán Papp
2024-07-22 13:13:12 +02:00
parent 0329c12173
commit 1097285d80
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func (c *Conn) Read(b []byte) (n int, err error) {
func (c *Conn) Write(b []byte) (n int, err error) {
err = c.Conn.Write(c.ctx, websocket.MessageBinary, b)
return len(b), err
return 0, err
}
func (c *Conn) RemoteAddr() net.Addr {