feat(websocket): implement Reader for reading binary data from the manager

- Removed Close method from Writer
This commit is contained in:
yusing
2025-09-13 22:38:24 +08:00
parent 99c1922342
commit 493c0afdfa
2 changed files with 25 additions and 4 deletions

View File

@@ -20,7 +20,3 @@ func (cm *Manager) NewWriter(msgType int) io.Writer {
func (w *Writer) Write(p []byte) (int, error) {
return len(p), w.manager.WriteData(w.msgType, p, 10*time.Second)
}
func (w *Writer) Close() error {
return w.manager.conn.Close()
}